I am developing an app for tablets like samsung galaxy, moto xoom and kindle fire.
My webview is not loading the desktop version of urls which I am giving.
I tried by setting the user Agent, but I dont know whats the exact "ua string" will solve my issue. When I took log of ua string I got the following
Code :
String ua = m_webview.getSettings().getUserAgentString() ;
Log.i("AboutActivity", "UA = "+ua) ;
UA String:
UA = Mozilla/5.0 (Linux; U; Android 3.1; en-US; GT-P7500 Build/HMJ37) AppleWebKit/534.13 (KHTML, like Gecko) Version/4.0 Safari/534.13
I read somewhere that I need to remove the "mobile" in the ua string but I didnt get "mobile" in the printed ua string.
I have tried the following ua string by adding desktop in it, even though its not coming
String ua = "Mozilla/5.0 (Linux; U; Android 3.1; en-US; GT-P7500 Build/HMJ37) AppleWebKit/534.13 (KHTML, like Gecko) Version/4.0 Desktop Safari/534.13";
mWebview.getSettings().setUserAgentString(ua);