I can not delete the file from sdcard.
File toDelete = new File(fname); boolean result=toDelete.delete();
The result is false. Reading and writing the same file works in one application. There are no open threads. There were no exceptions. I tried to make it writable just before deletion this way
toDelete.setWritable(true);
no effect. How is it possible that the system can write and read, but cannot delete the same file ???
source share