Skip to content

Instantly share code, notes, and snippets.

View FirstVoyager's full-sized avatar
🎯
Focusing

Milad Sohrabi FirstVoyager

🎯
Focusing
  • Iran
View GitHub Profile
@FirstVoyager
FirstVoyager / List music files
Created November 25, 2018 00:15 — forked from novoda/List music files
Android: List all music files
//Retrieve a list of Music files currently listed in the Media store DB via URI.
//Some audio may be explicitly marked as not being music
String selection = MediaStore.Audio.Media.IS_MUSIC + " != 0";
String[] projection = {
MediaStore.Audio.Media._ID,
MediaStore.Audio.Media.ARTIST,
MediaStore.Audio.Media.TITLE,
MediaStore.Audio.Media.DATA,