java - Avoid deleting the data from database on clicking 'clear data' button in the app settings on android device -


i using database store data. when user go apps settings , press 'clear data' button in app settings, data in databases gets deleted how can avoid this. can make 'clear data' button app in apps settings not enabled or other suggestions....

there no direct way avoid app data being cleared know.

however, store data on external storage (sd card) in file , @ every app launch check if file there , merge it's contents database. of course not work if user manually deletes backup file sd, inserts sd, removes sd or connects device mounted drive computer , launches app.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -