Android: List files of particular type in a directory


/ Published in: Java
Save to your folder(s)



Copy this code and paste it in your HTML
  1. File f = new File("folder");
  2. public boolean accept(File dir, String filename) {
  3. return filename.endsWith(filename);
  4. }
  5. };
  6. f.list(f2) (list of files)

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.