Getting a File's Last Modified Date
<p>I'm using this to see if a file already exists and get its timestamp:</p>

<pre><code>File file = new File(getResources().getString(R.string.file_name));

if (file.exists()) {
  Date lastModified = new Date(file.lastModified());
}
</code></pre>

<p>Even though I can see that this file does indeed exist using the Context.fileList() method, the code above always says it doesn't.</p>

<p>How can I get a file's last modified date?</p>
