I need to fetch an audio file from SD Card and play it. I think this can be done by getting URI of an audio file. So, to pick an audio file I\'m using following code:
final Uri uri=Uri.parse(Environment.getExternalStorageDirectory()+"/Audio/abc.mp3");
Replace /Audio/abc.mp3 with your path of mp3 file on sdcard.
/Audio/abc.mp3
your path of mp3 file on sdcard
Dont forget to check if the external storage is mounted. Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)
Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)