Skip to content Skip to sidebar Skip to footer

Android: File List In Listview

I need do the file list in ListView. Files from the folder (.txt files). How can I do it?

Solution 1:

see this link

use

File mfile=newFile("/sdcard");
File[] list=mfile.listFiles();

and filter in loop using

if(name.endsWith(".txt")) { }

How to list all files and folders locating on sd card

How do I count the number of files with a specific extension on Android?

Post a Comment for "Android: File List In Listview"