To follow up in case it's useful to someone else:

I ended up doing my testing with two devices using the same google account. 
 IE force a backup from one device, then do a factory reset on a second 
device and see if the the data gets restored with the app is first 
installed on the second device.


On Thursday, October 11, 2012 9:04:52 PM UTC-4, Chris Grebeldinger wrote:
>
> In the documentation:
> http://developer.android.com/guide/topics/data/backup.html#Testing
>
> It recommends testing backup/restore of your application by:
> 1. installing your app
> 2. make sure backup/restore is enabled
> 3. changing some data and calling dataChanged()
> 4. forcing bmgr to run a backup pass
> 5. uninstall the app
> 6. re-install the app and check if your data was restored
>
> All seems well until step 4, when I see this in the log:
>
> V/BackupManagerService(  306): removePackageParticipantsLocked: uid=10078 
> #1
> V/BackupManagerService(  306): Removing backed-up knowledge of 
> com.example.app
>
> And then for step 5:
>
> V/BackupManagerService(  306): restoreAtInstall 
> pkg=com.example.app token=21
> V/BackupManagerService(  306): No restore set -- skipping restore
>
> So apparently backed up data is destroyed when an app is uninstalled, 
> which means the official testing workflow can't possibly work right? 
>  What's the best way to test this?
>
> Thank in advance
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to