Skip to content

Instantly share code, notes, and snippets.

@irekasoft
Created April 14, 2014 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save irekasoft/10673689 to your computer and use it in GitHub Desktop.
Save irekasoft/10673689 to your computer and use it in GitHub Desktop.
Intent intent = new
Intent(getApplicationContext(),SecondActivity.class);
intent.putExtra("myKey",AnyValue);
startActivity(intent);
Now you can get the passed values by...
Bundle extras = intent.getExtras();
String tmp = extras.getString("myKey");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment