开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜