AysncTask
2016-08-19 16:35:23 1 举报
AsyncTask简单流程图
作者其他创作
大纲/内容
开始
Status.FINISHED
postResult(result)
onPreExecute();
PENDING
onPostExecute
new Runnable放入双端队列后面,去执行FutureTask
MESSAGE_POST_PROGRESS
RUNNING
MESSAGE_POST_RESULT
isCancelled
初始化mFuture
onCancelled
onProgressUpdate
AsyncTask.execute()
finish(Result result)
释放阻塞对象flushPendingCommands
executeOnExecutor
FINISHED
doInBackground(mParams)
msg.what
mStatus = Status.RUNNING
mStatus = Status.PENDING
execute(mFuture);
scheduleNext()从双端队列前弹出
放入ThreadPoolExecutor执行
初始化mWorker
0 条评论
下一页
为你推荐
查看更多
抱歉,暂无相关内容