I'd like to use the BackupManager
to back a DB for my app. The documentation talks about BackupAgent
and BackupAgentHelper
, and it states that you want to use BackupAgent
if you have a DB.
On the other hand, the BackupAgentHelper
has a neat FileBackupHelper
that makes things quite easy.
My questions:
1) Is it possible to use FileBackupHelper
to backup the .sqlite file in /data/data/<myapp>/databases?
2) if not, is it possible to use the SQLiteOpenHelper
's methods inside onBackup()
and onRestore()
(onCreate/onUpgrade to backup/restore)?