O'Reilly logo
  • aiyaz pricus thinks this is interesting:

The publishProgress() method, called from the doInBackground() method, periodically informs the UI thread about progress of the background process. This method sends information to the UI process. Use this opportunity to send updated information to a progress bar that the user can see.

Image The onProgressUpdate() method runs on the UI thread whenever the doInBackground() method calls publishProgress(). This method receives information from the background process. Use this...


Cover of Advanced Android™ Application Development, Fourth Edition


On progress update - Asynctask