So i have a folder at \"mnt/sdcard/folder\" and its filled with image files. I want to be able to scan the folder and for each of the files that is in the folder put each file p
List paths = new ArrayList();
File directory = new File("/mnt/sdcard/folder");
File[] files = directory.listFiles();
for (int i = 0; i < files.length; ++i) {
paths.add(files[i].getAbsolutePath());
}
See listFiles() variants in File (one empty, one FileFilter and one FilenameFilter).