@Override public void onConfigurationChanged(Configuration newConfig) { } 

I have 2 languages ​​in the app. Arabic and English. In addition, the phone itself works in Russian.

When I enter the application, I can programmatically change the language of the application to Arabic.

After I watch the video and flip the screen. Called onConfigurationChanged. And before that, the Layout is taken from the English folder. Although it should be taken from Arabic.

Which handler should I call to change the configuration from English to Arabic.

To when creating a window. layout came from arabic

  • Show the code that allows "programmatically change the language of the application to Arabic." - Eugene Krivenja
  • one
    And if you stupidly call newConfig.setLocale(new Locale("ar")); - will not help? - Barmaley
  • The whole question has been settled. The problem was that during the turn it was necessary to change the language application. - Andro

0