My code below loads a progress dialogue into webview on the initial load but I'd like it to appear every time webview is loading a URL!
I think I need to use onpagestarted() before the progressbar but I'm a bit of a noob at all this and having trouble getting it working. Can anyone advise please?
    //need to set progress bar condition here!
    progressBar = ProgressDialog.show(MyActivity.this, "Loading title", "Loading...");
    myWebView.setWebViewClient(new WebViewClient() {
         public void onPageFinished(WebView view, String url) {
             Log.i(TAG, "Finished loading URL: " +url);
             if (progressBar.isShowing()) {
                 progressBar.dismiss();
             }
         }
    });
    //web site load
    myWebView.loadUrl("http://www.google.com");