1

I want to create a playlist in android from which I can query and pull different mp3 tunes when I click next. But I'm not sure how and where to add the files and how to go about this, please can someone advise me how to go about this.

I have looked around on the net but cannot find something a little straightforward. I have found code of how to query this, but I'm not sure of where to start to actually create the playlist. I really need help with this, any help would be highly appreciated.

Thanks.

Raj
  • 693
  • 4
  • 17
  • 29

1 Answers1

1

You can push your audio files on the SDcard and run the MediaScanner. Using the native Music Player you can then create a sample playlist.

There is a ContentProvider for accessing playlists, you can probably run a projection(Select) query on it to get details: see MediaStore.Audio.Playlist. Also, this thread might give you some idea on how to query the ContentProvider.

Community
  • 1
  • 1
Samuh
  • 36,316
  • 26
  • 109
  • 116