how to access directory list in android
i want to access the directory stru开发者_如何学Pythoncture in my application
try
File f = new File(Environment.getExternalStorageDirectory());
File[] files = f.listFiles();
File mfile=new File("/sdcard/");
File[] list=mfile.listFiles();
System.out.println("list"+mfile.listFiles().length);
for(int i=0;i<mfile.listFiles().length;i++)
{
System.out.println("hidden path files.."+list[i].getAbsolutePath());
}
try this
精彩评论