Hi I am new to android. I need to list available files in device or SDCard in the android emulator 1.5.Thanks in advance.
Asked
Active
Viewed 1,386 times
2 Answers
1
Use normal Java File IO operations(see class-documentation)
Here is the pseudo-code:
String pathToSdCard = Environment.getExternalStorageDirectory().getAbsolutePath();
new File(pathToSdCard ).list();
Samuh
- 36,003
- 26
- 107
- 116
0
I had posted this on another page. Its a late answer but I worked on creating an android file explorer recently. https://github.com/mburman/Android-File-Explore
Its really straightforward. Essentially its just 1 file that you would need to integrate into your application.
Manish Burman
- 3,039
- 2
- 29
- 35