Use Asynctask to display a ProgressBar in Android

后端 未结 5 1543
暖寄归人
暖寄归人 2021-01-24 15:59

I am trying to do display a ProgressBar.

I am an Android beginner.

When I press the button, the task should be running in the background, but it does not display

5条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-24 16:29

    You forgot to call dialog.show() at the onPreExecute()

提交回复
热议问题