BackupManager & BackupAgent in Android 2.2

前端 未结 3 1752
北荒
北荒 2021-01-27 00:48

I\'ve reviewed the docs and the sample BackupRestore app and written my own test app implementing android:backupAgent. I extended the BackupAgent clas

3条回答
  •  囚心锁ツ
    2021-01-27 01:10

    The outputBackup pass but e=true p=false means the backup manager is enabled (e=true) but not provisioned (p=false).

    It will only run backups if both of these conditions are met. So for some reason the backupmanager is not provisioned on your emulator image, after digging through the code I noticed it should get auto-provisioned during bootup (DefaultActivity)

    I/ActivityManager(   73): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10000000 cmp=com.android.sdksetup/.DefaultActivity } from pid 0
    

    I just created a fresh emulator image, and it worked without problems there.

提交回复
热议问题