M.A.Murali M.A.Murali - 4 months ago 15
Android Question

how to get file path from sd card in android

hi all i have mp3 files in sd card. how to get file path of mp3 song from sd card.

please assist me.

Answer

You can get the path of sdcard from this code:

File extStore = Environment.getExternalStorageDirectory();

Then specify the foldername and file name

for e.g:

"/LazyList/"+serialno.get(position).trim()+".jpg"
Comments