Possible Duplicate:
How to list my app downloads
I created an android app that displays a list of books which users can download them, I made the downloads in the directory /mnt/sdcard/myapp/download
File sdCard = Environment.getExternalStorageDirectory();
File dir = new File (sdCard.getAbsolutePath() + "/myapp/Download");
dir.mkdirs();
File file = new File(dir, "filename");
, but I’m wondering how I can list the books that the user has downloaded.
you could use this code snippet here to get the names of the files. you can store it in an array and then display it with the help of an array adapter in a listview. i hope that helps.