Loading google search results(Mobile Version) in an Android WebView? -


i can load google search results in webview making request url http://www.google.com/search?q=searchterm , loading result on webview using

wb.loaddatawithbaseurl(null, responsestring,"text/html", "utf-8", null); 

but loads pc-browser version of search results..i want mobile version...thanks

try changing user agent:

wb.getsettings().setuseragentstring("android"); 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

ruby - Nesting modules inside of a Rails eninge gem -

Eclipse formatter for java ending braces -