how about:

SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences
(this);
String value = pref.getString("key", "default value");

Resources r = getResources();
String localizedValue = r.getString(r.getIdentifier
(value,"string",null));

You may have to fiddle with the last 2 params of getIdentifier to get
it to work (for instance if your resources are in array.xml, the 2nd
arg would be "array" I believe).
--~--~---------~--~----~------------~-------~--~----~
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