private File[] getJpgFiles(File f){
File[] files = f.listFiles(new FilenameFilter(){
@Override
public boolean accept(File dir, String filename) {
return filename.toLowerCase().endsWith(".jpg");
}});
return files;
}
Jumat, 30 Agustus 2013
Android code sample: storage
List files in directory with specified type
The example List all 'jpg' files in given directoty:
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar