Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to tell/cheat EVERY site, that I've entered it from PC (change X-WAP-Profile?)?
    text
    copied!<p>I have a webview, which displays mobile version of site. I've made "switch", which allows user to switch to full version of site, if he wants. So at first user goes to site's mobile version and after that he may toggle "switch" and site's full version is loaded.</p> <p>What's happening now: For some sites just changing user-agent is enough and they are loaded as from PC, when "switch" is toggled. But some sites are still able to detect, that I've entered from mobile device and still show me mobile version. </p> <p><strong><em>How can I tell ALL sites, that "I" am not mobile device, but a PC?</em></strong> Something like:</p> <pre><code>webView.getSettings().iAmPC(true); </code></pre> <p>P.S: For example: Opera mobile for Android (and Firefox) have this functionality (if I choose "Desktop" in preferences, EVERY site gives me it's full version). Android default browser 2.3.6 - not. <p> P.P.S: It will be also useful, if you know how to achieve it even not in webview. <p> <strong>Update:</strong> It seems that <em>X-WAP-Profile header</em> should be changed, but still haven't found a solution. There is a kind of solution <a href="http://forum.xda-developers.com/showthread.php?t=1284963" rel="nofollow noreferrer">mentioned here</a> but it seems to be unusable in-app. <p> P.P.P.S: My app has root access, so, solutions, which require root access are also accepted <p>Tried <a href="https://stackoverflow.com/a/8209272/1548085">shouldOverrideUrlLoading</a> with random or empty <code>Accept</code> header - no effect.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload