报价从here得到的文档的AsyncTask,它说的AsyncTask实例关闭UI线程
- The AsyncTask class must be loaded on the UI thread. This is done automatically as of JELLY_BEAN.
- The task instance must be created on the UI thread.
execute(Params...)
must be invoked on the UI thread.- Do not call
onPreExecute()
,onPostExecute(Result)
,doInBackground(Params...)
,onProgressUpdate(Progress...)
manually.
现在什么是创建在UI线程的AsyncTask参考的原因是什么?这是Looper的问题吗?