如何以编程方式在Android手机内部存储中打开文件夹?
问问题
606 次
1 回答
0
File folderDirectory = new File(Environment.getDataDirectory()+"/foldername/");
File[] listFiles = fileDirectory.listFiles();
if (listFiles.length != 0) {
for (int indx = 0; indx < listFiles.length; indx++) {
String fileName = listFiles[indx].toString();
System.out.println(fileName);
}
}
于 2019-04-22T11:02:54.677 回答