Android Tutorial: Async Task (Part-5) | Edureka

Опубликовано: 29 Январь 2013
на канале: edureka!
2,976
8

Take a FREE introductory instructor-led Live class at :

http://www.edureka.co/android-develop...
---------------------------------------------------------

In this tutorial instructor explained how to use Async Task in your applications.

AsyncTask :
------------------

Async Task uses three parameters which are as following:

Params, the type of the parameters sent to the task upon execution.
Progress, the type of the progress units published during the background computation.
Result, the type of the result of the background computation.

AsyncTask class encapsulates the creation of Threads and Handlers. It get started via the execute() method. This method calls the doInBackground() and onPostExecute() method.

*doInBackground() method :
In this method we define all the coding instruction which should be performed in a background thread and after successful completion of this method we pass the result to onPostExecute() method.

*onPostExecute() method :
is called by the framework once the doInBackground() method finishes in order to show the results


Watch all videos of this series -    • Android Tutorial - Web Interaction (Part 5)  

---------------------------------------------------------
Please write back to us at support@edureka.co or call us at +91-8880862004 for more information.
http://www.edureka.co

Visit - http://www.edureka.co/android-develop...


На этой странице сайта вы можете посмотреть видео онлайн Android Tutorial: Async Task (Part-5) | Edureka длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь edureka! 29 Январь 2013, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 2,976 раз и оно понравилось 8 зрителям. Приятного просмотра!