How to start and finish progressBar dynamically in android

前端 未结 4 947
刺人心
刺人心 2021-01-07 09:15

When I skip second activity class from first activity class, I will start imageprocessing on certain image in second activity and then until new image comes to screen I wnt

4条回答
  •  粉色の甜心
    2021-01-07 09:55

    Try this way first Intialize your ProgressDialog

     progressDialog = ProgressDialog.show(this, "", "Trying to ...");
    

    then start a new thread in which you can write your code which needs to be executed and finally in the handler handle the code and end the progessDialog

提交回复
热议问题