I want list of file based on my creation date. When i updating any if images and trying to retrive all images,then orders are changed randomly.
Here is my code,
File[] files = parentDir.listFiles();
for (File file : files) {
// I am getting files here
}
Any help..