On Tue, Nov 16, 2010 at 3:09 PM, TreKing <[email protected]> wrote:
> Custom code, but it's fairly trivial - settings are (currently) stored as an
> XML file, so I just copy that over to the SD card then read it back in.
> It's "/data/data/<packageName>/shared_prefs/<packageName>_preferences.xml",
> FYI. I use the default preferences everywhere, though, so if you use
> differently-name preferences, they might have different file names.

Bear in mind that Android could conceivably change the data store for
preferences sometime. The SharedPreference API could be backed up by a
SQLite database, for example. I doubt they will make that change, but
keep in the back of your mind that your restore process might need to
be a bit more complicated in the future if they do make a change.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
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