14

I've got a fairly simple issue I'm not sure how to resolve. I want to change the message text of a Progress Dialog while it's running and showing. An example of this would be something like a "time remaining" counter that would count down while the progress animation is spinning. I'm not sure how I would approach this because doing progressDialog.setMessage(String), even within a running thread, will not change anything in the Dialog itself. Thank you!

Brian
  • 7,955
  • 16
  • 66
  • 107
  • possible duplicate of [ProgressDialog does not want to update the message](http://stackoverflow.com/questions/3947080/progressdialog-does-not-want-to-update-the-message) – Kai Jul 06 '13 at 15:50

1 Answers1

18

You might want to check this question out.

In short: You need to create a little Runnable which you can execute on the UI thread using runOnUiThread...

Community
  • 1
  • 1
Michael Rose
  • 7,770
  • 3
  • 22
  • 26