ProgressDialog in Tabhost Not Working

后端 未结 1 1405
我寻月下人不归
我寻月下人不归 2021-01-24 20:03

i use three progress dialog in my activity

  1. OnCreate()
  2. When navigating to next page
  3. When navigating to previous page

but after firs

相关标签:
1条回答
  • 2021-01-24 20:40

    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(){
                public void run(){
                    MovieRequests();
                    runOnUiThread(new Runnable(){
                        public void run() {
                            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.

    0 讨论(0)
提交回复
热议问题