title: Android set last modified time for the file
body: <p>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 none of them could work for me. can someone give me solution for this? </p>
  
  <p>Please do not post me any URL's, I have already seen them : </p>
  
  <p><a href="https://stackoverflow.com/questions/6633748/file-lastmodified-is-never-what-was-set-with-file-setlastmodified">file.lastModified() is never what was set with file.setLastModified()</a></p>
  
  <p><a href="https://stackoverflow.com/questions/8169165/is-it-possible-to-reset-the-last-modified-date-of-an-android-file">Is it possible to reset the last modified date of an Android file?</a></p>
  
  <p><a href="http://www.mkyong.com/java/how-to-change-the-file-last-modified-date-in-java/" rel="nofollow noreferrer">http://www.mkyong.com/java/how-to-change-the-file-last-modified-date-in-java/</a></p>