title: how to display progress while loading a url to webview in android?
body: <p>I am loading url into webview:</p>
  
  <pre><code>WebView webview=(WebView)findViewById(R.id.webview); 
  webview.loadUrl(url);
  </code></pre>
  
  <p>It's taking some time to load url, during which it shows a blank screen. I want to display a progress dialog while the url is loading:</p>
  
  <pre><code>ProgressDialog dialog = ProgressDialog.show(this, "HI","Loading......", true);
  </code></pre>
  
  <p>However, the above is code is not working.  If any have any ideas, please help.  Thanks in advance. </p>