Android WebView WebChromeClient example app issue -
my source code sapmle app.
import android.app.activity; import android.os.bundle; import android.view.view; import android.webkit.websettings; import android.webkit.webchromeclient; import android.webkit.webview; import android.webkit.webviewclient; public class androidmobileappsampleactivity extends activity { /** called when activity first created. */ @override public void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.main); webview mainwebview = (webview) findviewbyid(r.id.mainwebview); websettings websettings = mainwebview.getsettings(); websettings.setjavascriptenabled(true); mainwebview.setwebviewclient(new mycustomwebviewclient()); mainwebview.setscrollbarstyle(view.scrollbars_inside_overlay); mainwebview.loadurl("http://qatarcarsale.com/"); } private class mycustomwebviewclient extends webviewclient { @override public boolean shouldoverrideurlloading(webview view, string url) { view.loadurl(url); return true; } } }
i want using crome browser ,other browsers not support site, how can resolve problem ?
do want use chrome browser or don't?
clarify it. also, there answer in below 2 links. if want let users choose browser, see below link
how load application in web-view in specific browser chrome or firefox in android
if want handle browser settings self, see this,