I'm using webview in my application and giving hardcoded URL using the code. All things are working perfectly fine, but one thing came across when I was testing it on 10.1" tablet. The URL which I have provided works fine with the phone but on tablet it redirects itself to the desktop version of the URL.
Any idea how to prevent that from happening. I'm using this URL: http://search.yahoo.com/mobile/s?submit=oneSearch&.intl=us&.lang=en&.tsrc=yahoo&.sep=fp&x=0&y=0&p=bike
I have specifically mentioned mobile in the URL, but still it is redirecting. Any idea..??
@Eldhose M Babu and @ankitmakwana: I have used that, but I''m not sure what is missing in that. I have attached the code, please have a look and guide me:
mWebview.setWebViewClient(new WebViewClient() {