Created
July 25, 2016 13:56
-
-
Save fire8/c9577ff3e1b415da0a8e254dc3a8064e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class YourTask extends AsyncTask { | |
... | |
@Override | |
protected void onPostExecute(Boolean result) { | |
handler.sendEmptyMessage(0); | |
} | |
} | |
Handler handler = new Handler() { | |
@Override | |
public void handleMessage(Message msg) { | |
switch (msg.what) { | |
case 0: | |
// YourTask完成 | |
break; | |
} | |
} | |
} | |
自行將三個工作檢查寫在Hanlder中 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment