Created
September 27, 2011 06:22
-
-
Save SuperYeti/1244459 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
protected override void OnCreate(Bundle bundle) | |
{ | |
base.OnCreate(bundle); | |
string intentString; | |
bool intentBool; | |
//if the activity is being resumed... | |
if (bundle != null) | |
{ | |
intentString = bundle.GetString("myString"); | |
intentBool = bundle.GetBoolean("myBool"); | |
} | |
else | |
{ | |
intentString = Intent.GetStringExtra("myString"); | |
intentBool = Intent.GetBooleanExtra("myBool", false); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment