How to list all files and folders locating on sd card

前端 未结 6 1808
抹茶落季
抹茶落季 2020-12-01 03:14

I have made a program that list all files and folders(f&f) locating on sd card. If i touch one of the list item ( if it is a folder ) then the list shows faf locating on

6条回答
  •  南方客
    南方客 (楼主)
    2020-12-01 03:41

    A simple example

        File Lis=new File("FolderPatch");
        Lis.listFiles(new FilenameFilter() {
    
            @Override
            public boolean accept(File dir, String filename) {
                Log.e(">>>>", filename+"<<<");
                return false;
            }
        });
    

提交回复
热议问题