I have the following problem:
I want to change the language of my app programmatically.
So I used shared Preferences to change the locale.
Locale locale2 = new Locale("b0");
Locale.setDefault(locale2);
Configuration config2 = new Configuration();
config2.locale = locale2;
getBaseContext().getResources().updateConfiguration(config2, getBaseContext().getResources().getDisplayMetrics());
b0 is the saved local.
b0 is working flawlessly with the German locale de and the English locale en , but not with the US one: en_US
Ofcourse I added a new folder:
res/values-en-rUS
With the american strings xml.
If I change the Language of my Phone to English (United States), the App starts with American English.
I even edited my lines to:
Locale locale2 = new Locale("en_US");
Still not working.
Is Anything wrong with "en_US"?
http://developer.android.com/reference/java/util/Locale.html
Any Help is very much accepted.