16.09.2010 12:09, karteek пишет:
You can use File apis as follows
File f=new File("/sdcard");
if(f.isDirectory()){
String files[]= f.list();
for(int i=0;i<files.length;i++){
Log.d("",files[i]);
}
Except that hard-coding "/sdcard" is bad - it's "/mnt/sdcard" in Froyo.
Use Environment.getExternalStorageDirectory instead.
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en