progress dialog is not displaying in async task when asynctask is called from separate class

前端 未结 5 662
小蘑菇
小蘑菇 2021-01-23 06:54

I have posted a question Progress Dialog is not displaying while getting data from separate thread class but I haven\'t got the appropriate answers. I have already used async t

5条回答
  •  醉话见心
    2021-01-23 07:40

    Try the following:

     @Override
       protected void onPreExecute() 
      {
    
     mProgressDialog =ProgressDialog.show(GmailInbox.this, "", "Please Wait",true,false);
     super.onPreExecute();
      }
    

提交回复
热议问题