android icon indicating copy to clipboard operation
android copied to clipboard

Key/Value Backup & restore settings & local database if a user installs the app on a new phone from a phone < Android 6.0

Open dektar opened this issue 8 years ago • 1 comments

Low-priority but nice to have.

dektar avatar Feb 03 '17 03:02 dektar

Tested that already works properly in Android 6.0+: https://developer.android.com/guide/topics/data/testingbackup.html. So a key/value B&R would be nice to have in older versions, but that could be annoying with the database having so much data. Since this works correctly in new Android, let's consider it very low priority.

"Back up data in a database. If you have an SQLite database that you want to restore when the user re-installs your application, you need to build a custom BackupAgent that reads the appropriate data during a backup operation, then create your table and insert the data during a restore operation." -https://developer.android.com/guide/topics/data/keyvaluebackup.html

dektar avatar Apr 09 '17 20:04 dektar