2

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.

Karthick
  • 634
  • 8
  • 19

2 Answers2

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,316
  • 26
  • 109
  • 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,069
  • 2
  • 30
  • 35