How could force android application to reload activity title when the language of the application has been changed? For your information, the application reloads the title only when the device is rotated. Yet, the content of the activity is reload with the appropriate language content with no problem, but the activity title!
In AndroidManifest.xml file, android:configChanges="locale" has been added with no success.
<activity
android:name=".layout.MainActivity"
android:configChanges="locale"
android:label="@string/app_name" />
Even overriding onConfigurationChanged event does not work,
@Override
public void onConfigurationChanged(Configuration newConfig) {
// refresh your views here
super.onConfigurationChanged(newConfig);
this.setTitle(getResources().getString(R.string.app_name));
}
Thank you,