Android Progress Bar is not dismissed
<p>I am using Progress Dialog to show progress while loading web page, but sometimes it does not work properly. Progress Dialog never get dismissed though page is loaded.</p>

<p>I have added Progress Bar like this</p>

<pre><code>public boolean shouldOverrideUrlLoading(WebView view, String url) {
    //Added progress dialog
}

public void onPageFinished(WebView view, String url) {
    if(progressdialog.isShowing())
       progressdialog.dismiss(); //Dismissed the progress, but sometimes never dismiss it
}
</code></pre>
