android: delete file from internal storage
<p>I'm trying to delete images stored in internal storage.
Looked through other similar questions on Stack, I've come up with this:</p>

<pre><code> File dir = getFilesDir();
File file = new File(dir, id+".jpg");
boolean deleted = file.delete();
</code></pre>

<p>from another question, which was answered with:</p>

<pre><code>  File dir = getFilesDir();
File file = new File(dir, "my_filename");
boolean deleted = file.delete();
</code></pre>

<p>My example always returns  false. I can see the file fx 2930.jpg in DDMS in eclipse.</p>
