Android progress dialog

后端 未结 5 1496
猫巷女王i
猫巷女王i 2020-12-09 06:25

My application fetches some html code from the internet and when done , displays it on the devices screen. Since it takes about 3-4 seconds to do that , in this time the scr

5条回答
  •  萌比男神i
    2020-12-09 07:27

    Create a UI thread after completing network operation

    runOnUiThread(new Runnable() { 
                @Override 
                public void run() { 
                 progressDialog.dismiss();
    
                } 
            });
    

提交回复
热议问题