AsyncTask must be created and executed from the Main thread and it runs on Worker thread. However, Main thread methods may be invoked in between to publish progress.
And what about handler?Can handler be created from any thread?And on which thread handler runs?How is handler different from asynctask in terms of threads?
What is the difference between AsyncTask and Handlers and which one would be better to use in Listview? ..Here it is mentioned-The Handler is associated with the application’s main thread. it handles and schedules messages and runnables sent from background threads to the app main thread.
..if handler runs on main thread then how it schedules message from background thread?