title: Delete File in SD Card android with string
body: <p>I have this string, </p>
  
  <pre><code>Cursor c = db.obtenerDatoEjercicio(selecID);
  String stringFoto1 = c.getString(6).toString();
  </code></pre>
  
  <p>then stringFoto1 is equals  "file:///mnt/sdcard/Pictures/neoadnEditGyM/GYM_2.2.jpg"</p>
  
  <p>This file exists.</p>
  
  <p>I want to delete that file on the sd and I used the following code:</p>
  
  <pre><code>String stringFoto1 = "file:///mnt/sdcard/Pictures/neoadnEditGyM/GYM_2.2.jpg"
  File archivo1 = new File(stringFoto1);
  archivo1.delete();
  </code></pre>
  
  <p>But this doesn't work, please help.</p>