构造函数相关源码注释
一、AsyncTask 参数简介
----
AsyncTask 泛型类型 :
异步任务开始时 , execute() 方法传入的参数类型 , 也是 doInBackground..., 结果类型 , onPostExecute() 方法传入参数类型 , 或 onCancelled() 方法参数 ;
二、AsyncTask 方法简介
----
AsyncTask 常用方法解析 :
doInBackground...() : 核心方法 , 执行异步任务 , 该方法在 子线程 中执行 ;
onPreExecute() : 在 doInBackground() 执行前先执行的方法 , 主线程 中执行 , 可更新 UI...界面 ;
onProgressUpdate() : 调用 publishProgress() 回调的方法 , 主线程 中执行 , 可更新 UI 界面 ;
onPostExecute() : doInBackground...() 方法的输入参数类型
Result 是返回值类型 , 也是 AsyncTask 的 doInBackground() 方法的执行完毕的返回值类型
RunnableFuture 接口简介 : 该接口继承