報價從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的問題嗎?