onProgressUpdate()从来没有被调用,你能告诉我为什么吗?
private class LoginMe extends AsyncTask<Context, Void, Boolean> {
@Override
protected Boolean doInBackground(Context... arg0) {
doSomething();
return true;
}
@Override
protected void onProgressUpdate(Void... v) {
super.onProgressUpdate(v);
Log.d("Dev", "Im in onProgressUpdate()");
}
@Override
protected void onPostExecute(Boolean result) {
super.onPostExecute(result);
if (result) {
doOne();
} else {
doTwo();
}
}
}