Skip to content Skip to sidebar Skip to footer

Android Set Last Modified Time For The File

I have been using ' public boolean setLastModified (long time) ' for setting the file modified time but it always return false. I have seen few similar posts related to this but

Solution 1:

setLastModified() is apparently unreliable on Android, perhaps working on some devices and not on others.

Solution 2:

You are told to test the return value, false if it is fail. Disappointed to find out about that...

Post a Comment for "Android Set Last Modified Time For The File"