Asynctask have 4 override methods onPreExecute(), doInBackground(), onProgressUpdate(), onPostExecute()
except onProgressUpdate all are working.
What should I do so that onProgressUpdate() should work.
Can anybody please briefly explain me what’s the use of onProgressUpdate(), what should write within this?
Asynctask have 4 override methods onPreExecute() , doInBackground() , onProgressUpdate() , onPostExecute() except onProgressUpdate
Share
onProgressUpdate()is used to operate progress of asynchronous operations via this method. Note the param with datatypeInteger. This corresponds to the second parameter in the class definition. This callback can be triggered from within the body of thedoInBackground()method by callingpublishProgress().Example