Reputation: 585
i am new to android.so any body know how to display the progress bar for certain amount of time and then again invisible it.i had created one progress bar in the xml file and i had some millisecond so to display the progressbar for that amount of time.any kind of example and want to do all the progresstask with asynctask Thanks in advance
Upvotes: 0
Views: 1283
Reputation: 128428
You can use onProgressUpdate(Integer...)
method of AsyncTask.
FYI, by using publishProgress()
method inside doInBackground()
, you can perform UI update operation. So you can update progress bar as and when you want from doInBackground()
method.
Upvotes: 1