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
Post a Comment