I can change locale as code below, but it does not seem to change the actual locale of the phone as "Locale & text > Select locale", would do (permanently). I need this to change similar to the LocaleSwitch app on the Market (which gets it right). Any help?
Code: Locale newLocale = new Locale(currentModelStringLang, currentModelStringCountry); Locale.setDefault(newLocale); Configuration config = new Configuration(); config.locale = newLocale; getApplicationContext().getResources().updateConfiguration( config,getApplicationContext().getResources().getDisplayMetrics());
PS: I already have the following in my manifest:
and
android:configChanges="locale" under the activity.
Link to related post: http://stackoverflow.com/questions/2264874/android-changing-locale-within-the-app-itself