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

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -