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.
На этой странице сайта вы можете посмотреть видео онлайн How to implement multi-threading in Android using AsyncTask длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь ProfPaulB 27 Ноябрь 2016, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 7,990 раз и оно понравилось 88 зрителям. Приятного просмотра!