 <p>Try this code,</p> <pre><code>private class MYWEBCLIENT extends WebViewClient { private ProgressDialog prDialog; @Override public void onPageStarted(WebView view, String url, Bitmap favicon) { super.onPageStarted(view, url, favicon); prDialog = ProgressDialog.show(activity, "", "Please wait..."); } @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { view.loadUrl(url); return true; } @Override public void onPageFinished(WebView view, String url) { super.onPageFinished(view, url); if (prDialog != null &amp;&amp; prDialog.isShowing()) prDialog.dismiss(); } } </code></pre> <p>Load webview code,</p> <pre><code>webViewInfo.getSettings().setJavaScriptEnabled(true); webViewInfo.getSettings().setJavaScriptCanOpenWindowsAutomatically(true); webViewInfo.setWebViewClient(new MYWEBCLIENT()); webViewInfo.loadData("YOUR_URL_OR_HTML_FILE", "text/html", "UTF-8"); </code></pre>