Android application runs on a single thread when launched. Due to this single thread model tasks that take longer time to fetch the response can make the application non-responsive. To avoid this we ...
The goal of this project is to implement an Asynchronous Task (AsyncTask) in an Android application. The AsyncTask is used to perform background operations that won't affect the main UI thread, ...
In the below example I have clearly described how to use AsyncTask. First of all you should know what is AsyncTask ? AsyncTask is an abstract class provided by android which helps us to use the UI ...
An Asynctask doesn't depend on Activity life-cycle that contains it. Like if we start an AsyncTask inside an Activity and then we rotates the device, the Activity will be destroyed at that point but ...