I have a Webview in my Activity and everytime whichever site i open it loads the site in an indian language whereas i always want the user to choose language or atleast set the default language to English
Tried
setLocale(Locale.ENGLISH);
public void setLocale(Locale locale){
Resources resources = getApplicationContext().getResources();
Configuration configuration = resources.getConfiguration();
Locale.setDefault(locale);
configuration.setLocale(locale);
getApplicationContext().getResources().updateConfiguration(configuration,
resources.getDisplayMetrics());
}
And
Locale.setDefault(...);
Locale.getDefault(...);
I even tried https://stackoverflow.com/a/40675539/12004834 this answer but the sites are still loading in other languages.