Skip to content

Instantly share code, notes, and snippets.

@SuperYeti
Created September 27, 2011 06:22
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