How do I get all audio files on Android?

How do I get all audio files on Android?
Answer
First we have to spacify what are the contents we are going to retrieve, for that we will create an array of projections we need. String[] proj = { MediaStore. Audio. Media.

…

MediaStore. Audio is works like a container.
  1. Get all the audio file from MediaStore.
  2. Add all the retrieved files in a List.
  3. Display the List.
1 окт. 2015 г.
 

Tìm kiếm

Back
Top