My question is that I want to restore my application’s sqlite database after I overwrite the same app on my device. I don’t like to add settings again and again on start up of my app.
So is it possible in android to save the database somewhere from which I can again restore it ?
I have searched for more than hours on Google and SO but couldnt ind any solution.
EDIT: Its not a fixed database. So I can’t store it in Assets Folder. It is editable by user but by default it should carry the last edited values(values before the app overwrite).
This method I find very helpful:
Then I just call
To back up, and then to restore: