On Fri, Aug 27, 2010 at 3:53 PM, Tom Gibara <tomgib...@gmail.com> wrote:

> Have the keys changed between releases of the application? Is the selected
> key persisted in any way?


Nope, they're hard-coded and were introduced in the last update.
So where I have "Key" is a string literal I use to ID the derived instance.

So it's like:

refs.add("Option1", new Derived1());
refs.add("Option1", new Derived2());

and so on.

Then in a drop down, the user can select "Option1" or "Option2", each option
being obtained from the hard-coded list.
So yeah, no saving or restoring of the keys. All in the code.

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