Last year David created an Android app for live performance named Audio Cues. It lets performing companies run sound for theater and other live shows. One of the tasks that app had to accomplish was to find existing audio files on a device, and in this tip he shares the code that worked for him.
- [Instructor] Last year, I created an Android app…for live performance named Audio Cues.…It lets performance companies run sound…for theater and other live shows.…One of that app's tasks was…to find existing audio files on a device…and display their information.…And in this tip, I'll share the code that worked for me.…Whenever you want to work with files…in persistent storage, whether audio or something else,…you need the appropriate permission.…In particular, I'll be working with files…in external storage.…
The storage that's visible to all applications.…In this beginning app's manifest file,…I've added the required permission…named read external storage.…In last week's tip, I described how…to deal with this sort of permission,…known as a dangerous permission.…In newer versions of Android, starting in Android 6,…you have to explicitly ask for the permission…at runtime, and the code to do that…is already in the main activity class for this application.…Down at the bottom, there's a check permissions method,…and the code is there to ask for permission,…
Skill Level Intermediate
Q: Why can't I earn a Certificate of Completion for this course?
A: We publish a new tutorial or tutorials for this course on a regular basis. We are unable to offer a Certificate of Completion because it is an ever-evolving course that is not designed to be completed. Check back often for new movies.
Android App Development: Data Persistence Librarieswith Annyce Davis4h 52m Intermediate
Building Android Apps with Cloud Serviceswith Albert Lo2h 37m Intermediate
1. Android Development Tips Weekly
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.