Enum in Activity
<p>I have trouble understanding the following thing: in my localized application I have an <code>Enum</code> in an activity that stores some localized strings (<code>R.string.aString</code>) which are compared against another localized string.</p>

<p>If while in application I change the locale and I came back and start the Activity that contains the Enum  I observe that it's members have are the same as before localization change. </p>

<p>What is the reason for this?</p>

<p>Edit :</p>

<pre><code>class Settings extends Activity 
{

    public enum SettingPreferenceScreen
    {
        Connection (R.string.Connection , xml_resource_1)
        Legend (R,string.Legend ,xml_resource_2)
        .......

    String key;
    int res;

    SettingPreferenceScreen(String key, int res)
    {....}

    public int getResource (String key)
    {
      for(SettingPreferenceScreen p : SettingPreferenceScreen.values())
        if(key.equals(p.key))
           return p.res;

      return -1;
    }

    }

}
</code></pre>
