i am changes my app language to other language.. This code is in my main activity.
lang = from SharedPreferenes;
Configuration config = getBaseContext().getResources()
.getConfiguration();
if (!config.locale.getLanguage().equals(lang)) {
Locale locale2 = new Locale(lang);
Locale.setDefault(locale2);
Configuration config2 = new Configuration();
config2.locale = locale2;
mContext.getResources().updateConfiguration(config2, null);
}
When i change orientation and click a button to open next activity, language change back to the default phone language(English). i Did try to use locale in manifest android:configChanges="keyboardHidden|orientation|locale" but no effect....any idea how to do it