Start a Project

Automatically resets app Locale in Android Nougat 7.1 after launching the WebView

In this small blog, we will see the basic solution to solve the Android 7.1 issue, somehow android nougat 7.1 devices automatically resets application locale after launching the WebView.

In the below solution, we will change the locale to ES(Spanish language).

How to fix

Step 1: Add this link before or after loading the webview,  

like this,

Step 2: Create a method for language change in application Class,

Step 3: Call it to the onCreate(),

complete application class,

If you have any doubt on this blog, please ask in comments. And stay updated and stay super.

Reference link.

 

 

Exit mobile version