Progressdialog In Tabhost Not Working
i use three progress dialog in my activity OnCreate() When navigating to next page When navigating to previous page but after first time when I click next page button the applica
Solution 1:
Your are not dismissing the Dialog in the Second Tabas you have done in first tab just before MovieCount().
EDIT:
dialog = ProgressDialog.show(this, "", "Loading. Please wait...", true);
Thread thread=new Thread(new Runnable(){
publicvoidrun(){
MovieRequests();
runOnUiThread(new Runnable(){
publicvoidrun() {
if(dialog.isShowing()){
ConfirmedMoviesListView.setAdapter( moviesCustomAdapter ); dialog.dismiss();
MovieCount();
}
}
});
}
});
thread.start();
}
}
See this part...you are not dismissing it here... That was where I mentioned that you have to dismiss.
Post a Comment for "Progressdialog In Tabhost Not Working"