title: Android: How can i show progress bar while loading data into WebView?
body: <p>How can I show the progress bar while loading data into my webview?
  My code :</p>
  
  <pre><code>public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
  
      this.requestWindowFeature(Window.FEATURE_PROGRESS);
      getWindow().setFeatureInt( Window.FEATURE_PROGRESS, Window.PROGRESS_VISIBILITY_ON); 
      this.setProgressBarVisibility(true);
      setContentView(R.layout.layout_article);
      WebView webview = (WebView) findViewById(R.id.webView);
      final Activity activity = this;
      webview.setWebChromeClient(new WebChromeClient() {
          public void onProgressChanged(WebView view, int progress) {
              activity.setProgress(progress * 100);
          }
      });
  
      webView.loadUrl("http://google.com");
  }
  </code></pre>