I have implemented change language from settings as per this ans , but after killing of my application some of the screen of application turned to english.
I have implemented code as below Code for Splash Screen
String deviceLanguage = Locale.getDefault().getLanguage();
if (!"en".equalsIgnoreCase(deviceLanguage) && !"ar".equalsIgnoreCase(deviceLanguage)){
deviceLanguage="en";
}
((AppController)getApplication()).appLang= Utilities.getSaveData(this, getString(R.string.key_language),deviceLanguage);
Code for Detail Activity
@Override
protected void attachBaseContext(Context newBase) {
super.attachBaseContext(MyContextWrapper.wrap(newBase, ((AppController)newBase.getApplicationContext()).appLang));
}
Note : I got this problem in one plus 3T device and genymotion emulator with 5.1 android version