I\'m able to do this:
File images = new File(path);
File[] imageList = images.listFiles(new FilenameFilter(){
public boolean accept(File
I was getting an exception
IllegalArgumentException: Comparison method violates its general contract!
so I used this and it worked ok:
Arrays.sort(filesList, new Comparator() {
@Override
public int compare(File a, File b) {
if(a.lastModified() < b.lastModified() )
return 1;
if(a.lastModified() > b.lastModified() )
return -1;
return 0;
}});