how can really show ProgressDialog while waiting for end process

后端 未结 1 2009
醉酒成梦
醉酒成梦 2021-01-20 07:00

I want to show ProgressDialog but ProgressDialog never really rendered ! And I want to end this process to start next state. this is my code:

ProgressDialog          


        
相关标签:
1条回答
  • 2021-01-20 07:31

    I use

    ProgressDialog dialog = ProgressDialog.show(className.this, "", "Loading. Please wait...", true);
    
     //Do stuff
    
    dialog.dismiss();
    
    0 讨论(0)
提交回复
热议问题