On Tue, Nov 16, 2010 at 12:54 PM, Nathan <critter...@crittermap.com> wrote:

> Since I may still move to a FULL version model, did your export of
> preferences end up being custom code, extracting one preference at a time to
> a proprietary format, or are there Preference apis that helped?
>

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.

Reading it in is a bit more work, but there's only 5 types supported that
you have to worry about (int, long, float, boolean, string), so it's not
that bad.

On Tue, Nov 16, 2010 at 12:55 PM, Bret Foreman <bret.fore...@gmail.com>wrote:

> The preferences transfer that you implemented is such an obvious need that
> it should be part of the framework. Can you generate a feature request along
> those lines?
>

http://code.google.com/p/android/issues/detail?id=12590

There you go.

On Tue, Nov 16, 2010 at 1:00 PM, Nathan <critter...@crittermap.com> wrote:

> I believe this is how I would use the INFO category. Correct?


Sure? =P Haven't actually done that myself, but looks about right.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

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