Can you please tell me:
- What the main difference between asynctask and thread is, in short one line ?
- What are the respective advantages and disadvantages of Asynctask and Thread ?
Can you please tell me:
Thread
1. A Thread is a Thread, probably you already know it from other part. You need to know that you cannot update UI from a Thread. You need to use a Handler for this, but read further.
AsyncTask
2. An AsyncTask is an intelligent Thread that is advised to be used. Intelligent as it can help with it's methods, and there are two methods that run on UI thread, which is good to update UI components.