title: ProgressDialog is not applicable for the arguments for fragment
body: <p>I can't use a progress dialog in a <code>Fragment</code>. I tried using a progress dialog in an <code>Activity</code>, however, and it worked.</p>
  
  <p>Here's part of my code:</p>
  
  <pre><code>private class MyCustomWebViewClient extends WebViewClient {
        @Override
        public void onPageStarted(WebView view, String url, Bitmap favicon) {
            super.onPageStarted(view, url, favicon);
            final ProgressDialog pd = ProgressDialog.show(this, "", "Loading...",
                 true);
            pd.setCancelable(false);
            pd.setTitle("Please wait");
            pd.setMessage("Page is loading..");
            pd.show();
        }
        @Override
        public boolean shouldOverrideUrlLoading(WebView view, String url) {
            view.loadUrl(url);
            return true;
        }
  </code></pre>
  
  <p>The error is:</p>
  
  <pre>
  The method show(Context, CharSequence, CharSequence, boolean) in the type
  ProgressDialog is not applicable for the arguments 
  (CommunityFragment.MyCustomWebViewClient, String, String, boolean)
  </pre>
  
  <p>How can I fix this?</p>