How to set Progress bar for loading activity with data in android
<p>This is my first class doing Url loading .</p>

<pre><code>public class HelloWebViewClient extends WebViewClient
{    
     @Override
     public boolean shouldOverrideUrlLoading(WebView view, String url)
     {
         view.loadUrl(url);
         return true;
     }
}
</code></pre>

<p>This is my Activity Class where data is displacing in web view.</p>

<pre><code>public class detailedview extends Activity
{
    WebView mWebView;
    @Override
    public void onCreate(Bundle savedInstanceState) 
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.detailedview);
        GetSet gs = new GetSet();

        String title = gs.getTitle();
        String desc = gs.getDesc();

        mWebView = (WebView) findViewById(R.id.webview);
        mWebView.getSettings().setJavaScriptEnabled(true);
        mWebView.getSettings().setBuiltInZoomControls(true);
        mWebView.getSettings().setSupportZoom(true);
        mWebView.getSettings().setTextSize(TextSize.SMALLER);
        mWebView.loadDataWithBaseURL("", "&lt;p  align=\"justify\"&gt;&lt;b&gt; " + title+"&lt;/p&gt;&lt;/b&gt;&lt;p align=\"justify\"&gt;&lt;br&gt;"+ desc + "&lt;/p&gt;&lt;/br&gt;", "text/html", "utf-8", "");
        mWebView.setWebViewClient(new HelloWebViewClient());
    }
}
</code></pre>

<p>I want to put progress bar for loading data in my activity, I have tried a lot but I can't do it.</p>

<p>Can you please write code or post code so that I can have a progress bar while loading data according to my code.</p>
