title: Android backup/restore sample doesn't work?
body: <p>I'm having this same problem - as found in the google developer group. I quote what it is a very detailed explanation by Chris Grebeldinger (original author).</p>
  
  <p>"In the documentation:
  <a href="http://developer.android.com/guide/topics/data/backup.html#Testing" rel="nofollow noreferrer">http://developer.android.com/guide/topics/data/backup.html#Testing</a></p>
  
  <p>It recommends testing backup/restore of your application by:</p>
  
  <ol>
  <li>installing your app</li>
  <li>make sure backup/restore is enabled</li>
  <li>changing some data and calling dataChanged()</li>
  <li>forcing bmgr to run a backup pass</li>
  <li>uninstall the app</li>
  <li>re-install the app and check if your data was restored</li>
  </ol>
  
  <p>All seems well until step 4, when I see this in the log:</p>
  
  <p>V/BackupManagerService(  306): removePackageParticipantsLocked: uid=10078 #1
  V/BackupManagerService(  306): Removing backed-up knowledge of com.example.app</p>
  
  <p>And then for step 5:</p>
  
  <p>V/BackupManagerService(  306): restoreAtInstall pkg=com.example.app token=21
  V/BackupManagerService(  306): No restore set -- skipping restore</p>
  
  <p>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?"</p>
  
  <p>Has anybody managed to run and test this sample correctly?</p>