There is an alternative way. When you first open a file, save the last date with the modification before changing the folder.
long createdDate =new File(filePath).lastModified();
And then when you close the file do
File file =new File(filePath); file.setLastModified(createdDate);
If you did this since the file was created, you will have the created date as lastModified date all the time.
coolcool1994 Feb 07 '13 at 4:38 2013-02-07 04:38
source share