title: Is it possible to reset the last modified date of an Android file?
body: <p>I'm writing a purge function for our software that removes all image files that haven't been used in over a month.  To do this, I am checking two things:</p>
  
  <ol>
  <li>the last-modified date of the file</li>
  <li>a query on a database that shows recently viewed files.</li>
  </ol>
  
  <p>The query is much slower than the file check.  So I would ideally like to be able to reset the last modified date on any files that fail the first check, but pass the second, so that (for example) a list of venerable but often-used files aren't gradually increasing the processing load of the management system.</p>
  
  <p>Is there a way to do this without recourse to something crude (and possibly even slower), like renaming each file to a temporary label, then itself?</p>