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.
I
android_dev , Use a handler
public void onPageFinished(WebView view, String url)
{
handler.sendEmptyMessage(0);
}
Handler handler = new Handler() {
@Override
public void handleMessage(Message msg) {
if(progressdialog.isShowing() || progressdialog!=null)
progressdialog.dismiss();
progressdialog=null;
}
}
& you are done!