Hey guys i am working on application that support both English and Arabic, the English version is working fine but the Arabic do not working right below Android N
Locale locale = new Locale("ar");
Locale.setDefault(locale);
Configuration config = new Configuration();
config.locale = locale;
context.getApplicationContext().getResources().updateConfiguration(config, null)
Firstly, check your device supports Arabic language.
Secondly, make sure that the following methods are used to change the language on Android at runtime for different API's:
updateConfiguration
for API < 17
createConfigurationContext
for API ≥ 17
For more information, please check the following article: change-language-programmatically-at-runtime