After some more thought, I think your advice to use the position of the
unit name in the array will work.

The only issue I can think of is if I add a new unit after the app is
released, the new entry has to go at the end of the array. For example,
take pressure units. Say I start with the units: bar, atm, mmHg, Pa. In
version 2.0 (bigger, better, etc) I find I need to add mbar, and inHg. They
would have to go at the end of this array, so the spinner would display
bar, atm, mmHg, Pa, mbar, inHg. A better visual display would be mbar, bar,
atm, inHg, mmHg, Pa, but I cannot insert mbar and inHg into the array, they
have to go at the end because I am using the array's position index for the
units instead of an external fixed constant. If I insert the new units into
the start of the array, then any saved unit index in the sqlite db from the
1.0 version of the app will be incorrect. Probably a small price to pay for
the benefits of easy localization.

Thanks,

Mark


On Thu, Dec 6, 2012 at 2:33 PM, TreKing <[email protected]> wrote:

> On Thu, Dec 6, 2012 at 3:21 PM, Mark Phillips 
> <[email protected]>wrote:
>
>> Perhaps I am over thinking this?
>
>
> Perhaps. I'm having a hard time following with just your description. If
> you could share some examples of how you're structuring things, in code and
> / or xml, or show some screenshots or something, that might help.
>
>
>
> -------------------------------------------------------------------------------------------------
> 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 [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
>

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