Android
directory list
aucd29
2013. 10. 8. 14:54
http://groups.google.com/group/android-developers/browse_thread/thread/25a204af6f523172/1192dc60954b2117?show_docid=1192dc60954b2117
[code]
File fileDir = new File(strSomePathToSDCardDirectory);
String fn[] = fileDir.list()[/code]
[code]
String path = DirInfo.getInstance().getBasePath();
File fp = new File(path);
File[] lists = fp.listFiles();
for (File list : lists) {
if (list.isDirectory()) {
Log.d(TAG, list.getAbsolutePath());
}
}[/code]
[code]
File fileDir = new File(strSomePathToSDCardDirectory);
String fn[] = fileDir.list()[/code]
[code]
String path = DirInfo.getInstance().getBasePath();
File fp = new File(path);
File[] lists = fp.listFiles();
for (File list : lists) {
if (list.isDirectory()) {
Log.d(TAG, list.getAbsolutePath());
}
}[/code]