Just recently context.getResources().updateConfiguration() has been deprecated in Android API 25 and it is advised to use context.createConfigurationContext() instead.
there is a simple solution with contextWrapper here : Android N change language programatically Pay attention to the recreate() method