Files not getting deleted in android -
in app, want delete 1 sqlite file , 1 txt file, doesn't work time.
i have given read/writes permissions in android manifest file.
is problem specific android version or there other way delete file in java.?
i using below code.
if(file.exists()){ file.delete() }
any idea?
maybe file still in use , cannot deleted. can use fileobserver check when file accessed. see http://developer.android.com/reference/android/os/fileobserver.html
Comments
Post a Comment