This Video Tutorial is on Android AsyncTask. AsyncTask is an abstract class in which implementation is hidden and only functioning is visible to user. This class allows us to perform long/background operations and generates its result on the main UI thread, which helps us to make our application responsive every time. We can use AsyncTask class by extending AsyncTask<String, String, String> and by execute method we will start the background thread.
AsyncTask is executed with four steps:
1. onPreExecute
2. doInBackground
3. onProgressUpdate
4. onPostExecute
Three parameters for AsyncTask:
1. Params
2. Progress
3. Result
I had attached the full demo at the end of this tutorial.
For any queries feel free to post in comments section.
0 Comment(s)