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

Publicado em: 29 Janeiro 2013
no canal de: 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...


Nesta página do site você pode assistir ao vídeo on-line Android Tutorial: Async Task (Part-5) | Edureka duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário edureka! 29 Janeiro 2013, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 2,976 vezes e gostou 8 espectadores. Boa visualização!