Hi, all!
This is the first version of a demo of how to save and restore Android app state:
https://github.com/ptressel/PersistenceDemoIt's the first version (with more to come) because I was off by a week on which day I was presenting. D'oh! and Sorry!!! This version shows use of preferences, local file, and a state object, plus most of the system callbacks used to save and restore state.
I'm going to try to get in use of a sqlite database and a bundle to complete the set of local storage options used for state persistence.
This doesn't cover external storage, as one can't count on having that, so it's not as useful for persistence. External storage includes the SD card, writing to another machine via USB, and querying / updating to a web service. If anyone's interested, I can put together a demo of doing authenticated queries to a web service from an app (i.e. not using a browser), treating the web service as storage, not as something to generate a UI. (If we want, we can use the demo server for Sahana Eden as a back end -- it supports an extensive REST interface.)
Show of hands: Is there interest in looking at any of the external storage methods?
-- Pat