• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps need help handling for "clear data"

i build application....and i want to back up my database when user click "clear data" in manage application...because data is lost...some data is very critical for process in my application...how can i solved this???
please help me .....

thanks...
 
There are lots of ways to backup your data but not knowing how it is stored, means I can't really suggest how to back it up.

However, there is no way for an app to listen for it's own "clear data" intent.

I'd recommend you have some type of check to see if the data that you consider critical is there before using it.
 
Back
Top Bottom