In my application, I’m using a database to store some data, but if I close my app, my database will be deleted too. So I want to know if there is any mean to save my database and re-use it for the next launch of my app.
I use for the moment
public DatabaseHandler(Context context) {
super(context, DATABASE_NAME, null, DATABASE_VERSION);
}
in order to create my database.
Thanks for your help
If you are creating database using
SQLiteOpenHelperit won’t be deleted unless you do it purposely. They are used for persistent memory storage, therefore Android framework doesn’t delete it itself unless user clears app data and cache from Application Settings.