Im having trouble making things happen in order instead of together in android.
For instance when a user clicks a Button, I want a ProgressDialog to be displayed first, then dismissed, and then TextView changed. Would I need to make a method for each of these or is it something i can implement to make this happen.
Thanks for anyone who helps.
You can use an AsyncTask to accomplish this. Override
doInBackgroundand usepublishProgressandonProgressUpdateto update your progress bar. Then, inonPostExecute, update your TextView.An example (without the
publishProgressandonProgressUpdate):