Clearing the Progress Indicator

Next, you implement the onPostExecute() method, which runs on the UI thread after background processing completes. Specifically, when you have completed all parsing and displaying, you can hide the progress indicator shown in the title bar if all the tasks are complete, as determined by mProgressCounter. @Override protected void onPostExecute(Boolean result) { Log.i(DEBUG_TAG, "onPostExecute"); mProgressCounter—; if (mProgressCounter <= 0) { mProgressCounter = 0; QuizScoresActivity.this.


Was this article helpful?

0 0

Post a comment