1

I am creating a Webview that loads content from a site that provides mobile specific http response. The problem is I don't want this response, I would prefer the regular feed. How can I keep the website from treating the request as from a mobile device? I am thinking maybe there is a way to keep the website from recognizing the request as from mobile. Perhaps a manifest option or some option in the Webview?

4

1 に答える 1

0
String UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1";

WebSettings webSettings = myWebView.getSettings();
webSettings.setUserAgentString(UserAgent);

また:

myWebView.getSettings().setUserAgentString(UserAgent);

于 2013-01-07T22:30:32.400 に答える