Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I Update the string message of a ProgressDialog?

I set up a progressdialog in an Android AsyncTak and it works.

My question is it possible to update in the onProgressUpdate method of the AsyncTask the string that the ProgressDialog displays. I would like to update the string with a publishProgress call to show progress of the task.

I can update the string if instead of the progressDialog I have my own textview. The progressDialog looks better and has the spinning wheel.

like image 874
Tori Avatar asked Jan 21 '23 11:01

Tori


1 Answers

Yes you can. Simply call myProgressDialog.setMessage("My New Message"); in onProgressUpdate method

like image 58
james Avatar answered Jan 30 '23 12:01

james