I am currently developing an Android application with a WebView component which displays a website that is designed for mobile phones and thus the x-wap-profile header must be sent to the site in order to resize the CSS and the images.
Can anyone help me find the UAProf device setting?
I've conducted a lot of searching, with no success.
Any help will be greatly appreciated.
Thanks in advance.
There is no "UAProf device setting".
You are welcome to use the version of
loadUrl()
where you supply your own set of headers to include your desired header. Note that this was added in API Level 8 (a.k.a., Android 2.2) -- AFAIK, prior versions of Android had no options for supplying custom headers.You are also welcome to set your user agent string via
WebSettings
, if the Web site in question will use that instead of your desired header.