How to implement multi-threading in Android using AsyncTask

Publié le: 27 novembre 2016
sur la chaîne: 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.


Sur cette page du site, vous pouvez voir la vidéo en ligne How to implement multi-threading in Android using AsyncTask durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur ProfPaulB 27 novembre 2016, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 7,990 fois et il a aimé 88 téléspectateurs. Bon visionnage!