title: How to delete photo just taken in android program
body: <p>I have written a program that uses the Intent for the image capture to get a photo using the application in the phone.
  Using MediaStore.EXTRA_OUTPUT, I get a URI to the image, which converted to a path results in something like "/external/images/media/NN" where NN is the number of the photo.</p>
  
  <p>Now, in my program, after I read and manipulated the image, I want to delete that image.</p>
  
  <p>How should I do that?</p>
  
  <pre><code>(File image = new File(path); image.delete(); // returns false, so doesn't work)
  </code></pre>