我将如何获取 sdcard 上特定目录(即 /ringtones/)中所有文件的数组?
问问题
5886 次
3 回答
3
这很简单。只需执行以下操作:
File dir = new File(path);
String[] files = dir.list();
于 2010-07-08T08:24:57.483 回答
0
于 2010-07-08T15:18:58.227 回答
-1
你应该试试这个:http: //developer.android.com/guide/topics/data/data-storage.html#filesExternal
希望我有所帮助。
于 2010-07-08T07:37:10.397 回答