Created
September 1, 2014 03:42
-
-
Save wada811/06e5fb86cbfdec78b690 to your computer and use it in GitHub Desktop.
How to pass Enum by Intent
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
# Difinition | |
enum YourEnumType { | |
yourEnum | |
} | |
# Pass | |
intent.putExtra(EXTRA_KEY, yourEnum); | |
# Receive | |
YourEnumType yourEnum = (YourEnumType) intent.getSerializableExtra(EXTRA_KEY); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment