i have a folder in sd card which contains several files.
now i need to get the names of that files.
can anybody have any idea how to get the file names stored in sd card?
any help will be appreciative.
thanks a lot.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Environment.getExternalStorageDirectorywill give you aFilecorresponding to the SDCARD. Then you’ll just have to useFilemethods.That should be something like that :
A little note of advice : from KitKat and above, this requires the
READ_EXTERNAL_STORAGEpermission.