How can I override Android WebView to use a custom Accept-Language header?

Is it possible to override Android WebView to use a custom Accept-Language header?

+1
source share
1 answer

The current implementation WebViewalready allows you to add headers using the following syntax:

Map<String, String> headers = new HashMap<String, String>();
headers.put("Accept-Language", "fr_fr");
mWebView.loadUrl("http://developer.android.com", headers);

See more details WebView.loadUrl().

+7
source

All Articles