Answer the question
In order to leave comments, you need to log in
How to show Desktop version in WebView instead of Mobile?
Good day. I have a WebView element in my app, and I'm trying to navigate to a website.
My task is to display the desktop version of the site, not the mobile one. User-Agent changed like this:
mWebView.getSettings().setUserAgentString("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/602.3.12 (KHTML, like Gecko) Version/10.0.2 Safari/602.3.12");
mWebView.getSettings().setUseWideViewPort(false);
mWebView.getSettings().setLoadWithOverviewMode(false);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question