How to display files on the SD card in a ListView?

前端 未结 6 2115
遥遥无期
遥遥无期 2020-12-03 06:24

I would like to create a button that when clicked will go to a class that displays all media files from an SD card using a ListView.

After selecting fro

6条回答
  •  天涯浪人
    2020-12-03 06:51

    File mfile=new File("/sdcard");
    File[] list=mfile.listFiles();
    
    System.out.println("list"+mfile.listFiles().length);
    for(int i=0;i

    may this would help!!!

提交回复
热议问题