、AsyncTask 参数简介
----
AsyncTask 泛型类型 :
异步任务开始时 , execute() 方法传入的参数类型 , 也是 doInBackground...protected void onPreExecute() {
// doInBackground 之前执行的方法, 一般在该方法中执行初始化操作 ( 主线程, 可以更新 UI...AsyncTask 的 doInBackground() 方法的输入参数类型
Result 是返回值类型 , 也是 AsyncTask 的 doInBackground() 方法的执行完毕的返回值类型...对象中的 run() 方法 , 但是方法执行的结果我们是不知道的 ;
而在 AsyncTask 异步任务中 , 执行 doInBackground() 方法 , 该方法也是在子线程中执行的 ,...*
* Params 是参数类型 , 也是 AsyncTask 的 doInBackground() 方法的输入参数类型
* Result 是返回值类型 , 也是 AsyncTask 的 doInBackground