how to get file path from sd card in android

后端 未结 7 991
旧时难觅i
旧时难觅i 2020-11-28 09:00

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

please assist me.

7条回答
  •  难免孤独
    2020-11-28 09:39

    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"
    

提交回复
热议问题