webview.setVisibility(View.VISIBLE);
webview.getSettings().setJavaScriptEnabled(true);
webview.getSettings().setUseWideViewPort(true);
webview.setWebViewClient(new WebViewClient() {
@Override
public void onPageStarted(WebView view, String URL, Bitmap favicon)
super.onPageStarted(view, url, favicon);
}
@Override
public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
super.onReceivedError(view, errorCode, description,failingUrl);
}
@Override
public void onPageFinished(WebView webview, String url) {
super.onPageFinished(webview, url);
}
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
return super.shouldOverrideUrlLoading(view, url);
}
});webview.loadUrl(“my_url”);