I've created a sample project using BackupRestore
. I went to register for a key at Android Backup Service. I got the following:
Your key is: AEdPqrEAAAAIW4p30C1GTNjzBOqWrb0clI7_OCWxm3ddIgkKhw This key is good for the app with the package name:
com.example.android.backuprestore Provide this key in your AndroidManifest.xml file with the following element, placed inside the <application> element:
<meta-data android:name="com.google.android.backup.api_key" android:value="AEdPqrEAAAAIW4p30C1GTNjzBOqWrb0clI7_OCWxm3ddIgkKhw" />
When I launch the app and choose "Bacon" + "Tomato", I can see pending backups using dumpsys backup
. So I force run it (bgmr run
=> pendings disappear) and uninstall the app.
When I restore it, logcat tells me "No restore data available" and of course, the settings aren't displayed with the correct info.
Any ideas what I could be doing wrong ?