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

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -