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.
+1
A:
Use normal Java File IO operations(see class-documentation)
Here is the pseudo-code:
String pathToSdCard = Environment.getExternalStorageDirectory().getAbsolutePath();
new File(pathToSdCard ).list();
Samuh
2010-05-24 08:24:38
A:
If you don't want to implement it by your own and if you want a folder picker with a GUI (also with animations etc.) you could use this code snipplet:
Roflcoptr
2010-05-24 09:40:59
A:
There is a terrific tutorial with sample code at: http://www.anddev.org/building_an_android_filebrowser_list-based_-t67.html
It's not the same one posted by Sebi. A few tweaks are necessary such as sorting by alphabetical order, but overall it's very useful and consists of one simple class which is very easily understandable and modifiable.
HXCaine
2010-05-24 10:33:55