Created
May 20, 2011 08:45
-
-
Save granoeste/982578 to your computer and use it in GitHub Desktop.
[Android]Handler
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
final private Handler mHandler = new Handler() { | |
@Override | |
public void handleMessage(final Message msg) { | |
switch (msg.what) { | |
case MESSAGE_ONE: | |
// TODO: | |
return; | |
case MESSAGE_TWO: | |
// TODO: | |
return; | |
case MESSAGE_TREE: | |
// TODO: | |
return; | |
} | |
} | |
}; | |
private static final int MESSAGE_ONE = 1; | |
private static final int MESSAGE_TWO = 2; | |
private static final int MESSAGE_TREE = 3; | |
mHandler.sendMessage(mHandler.obtainMessage(MESSAGE_ONE, <Object>)); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment