I am trying to delete images stored in internal storage. I came up with this so far:
File dir = getFilesDir(); File file = new File(dir, id+".jpg"); boolean deleted = file.delete();
And this is from another question that was answered with :
File dir = getFilesDir(); File file = new File(dir, "my_filename"); boolean deleted = file.delete();
My example always returns false. I see the fx 2930.jpg file in DDMS in eclipse.
android file-io
Crunch Mar 30 '11 at 12:53 2011-03-30 12:53
source share