Android UI Thread Asynchronous Part -3

 

What is asynctask in android? It is an abstract class provided by Android which gives us the liberty to perform tasks in the background and keep the UI thread light thus making the application more responsive. AnsycTask enables easy use of the UI thread. It also reported progress of the running tasks. Three generic types used in an android AsyncTask class are Params, Progress, and Result.
The parameters are the following AsyncTask <TypeOfVarArgParams, ProgressValue, ResultValue>.

 


Leave a Reply

Your email address will not be published. Required fields are marked *