How to implement multi-threading in Android using AsyncTask

Published: 27 November 2016
on channel: ProfPaulB
7,990
88

In this video we learn how to offload long-running tasks off of Android's main UI thread using the AsyncTask.

We learn how to implement the following methods in order to establish communication between a worker thread and the UI thread.

doInBackground - code here is executed on a background thread

onPreExecute - this code runs before the doInBackground runs

onPostExecute - this code runs once the background thread is completed

publishProgress onProgressUpdate are used to communicate between the UI and background threads.


On this page of the site you can watch the video online How to implement multi-threading in Android using AsyncTask with a duration of hours minute second in good quality, which was uploaded by the user ProfPaulB 27 November 2016, share the link with friends and acquaintances, this video has already been watched 7,990 times on youtube and it was liked by 88 viewers. Enjoy your viewing!