Hi Jason,

I'm definitely calling dataChanged(), but have just also tried an extra 
call to 
adb shell bmgr backup 
*uk.co.islovely.cooking.scheduler<http://your.package.name>
*
but no luck after that.

I have previously been reinstalling my app by running it in the eclipse 
debugger, which does the reinstall for me.  I'm not sure what the exact 
command it runs is.  I don't have the wipe user data checkbox ticked.  I 
tried reinstalling from the command line using
adb install -r <path to my apk>
as you suggested, but again all my user data was not available.

How are you saving your private data files?  I'm doing

FileOutputStream out_file = openFileOutput(SAVED_MENU_ITEMS_FILENAME, 
MODE_PRIVATE);
out_file.write(json_to_write.toString().getBytes());
out_file.close();

If I compare the output from logcat from my phone 
http://pastebin.com/wZX7iys8
With that from the AVD device running 2.2 http://pastebin.com/q0Y7v3re

You can see that on the AVD device it does a backup, and restores it, 
whereas on the phone there is no backup and no restore in the logging.

I suspect that backup is just broken on my phone.  I guess I need to know 
an app that implements backup well, so that I can try with that one, which 
will tell me if it's my code or my phone that's busted.

Thank you for reading this far! :)

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

Reply via email to