backup-agent

BackupAgentHelper: onRestore not getting called

醉酒当歌 提交于 2019-12-24 08:48:14
问题 I installed the example BackupRestore from this link. https://android.googlesource.com/platform/development/+/0b3758ea4e53f9bfd0b112eaa4a7dd7b7f4040f5/samples/BackupRestore?autodive=0%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F I am unable to restore the data. OnBackup and OnCreate get called, but OnRestore does not. I am able to backup: OnCreate and OnBackup get hit, but OnRestore does not. @Override public void onRestore(BackupDataInput data, int appVersionCode, ParcelFileDescriptor newState) throws