I am creating simple Webview application with some links on textview and open those links in webview instead of default browser. My
WebView wv = (WebView) findViewById(R.id.webView1);
wv.getSettings().setJavaScriptEnabled(true);
wv.getSettings().setSupportZoom(true);
wv.getSettings().setBuiltInZoomControls(true);
wv.setWebViewClient(new WebViewClient()
{
// Links clicked will be shown on the webview
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url)
{
return super.shouldOverrideUrlLoading(view, url);
}
});
wv.loadUrl(url);