What happens after app upgrade, will it keep the database from previous version or flush out all data?
All application data (including stored files, SharedPreferences, and SQLite databases) is kept during updates.
Note that the SQLiteOpenHelper also provides an onUpgrade()
method that you can use to upgrade the SQLite database when the database's schema changes. Do not confuse this with application upgrades though!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With