AsyncTask必须从主线程创建并执行,并且 在工作线程上运行。但是,可以在 之间调用主线程方法来发布进度。了解与处理程序和AsyncTask关联的线程
什么是处理程序?可以从任何线程创建处理程序?哪些线程处理程序运行?处理程序与线程方面的不同之处是什么?
What is the difference between AsyncTask and Handlers and which one would be better to use in Listview? ..这里有提到 - 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.
..如果处理程序在主线程上运行,那么它如何从后台线程调度消息?
相关阅读:http://developer.android.com/guide/components/processes-and-threads.html – Knossos