Skip to content

Instantly share code, notes, and snippets.

@gipi

gipi/gist:1298537

Created Oct 19, 2011
Embed
What would you like to do?
Pass paremeters between Activity
// calling activity
Intent i= new Intent(context, QRActivity.class);
i.putExtra("url", url);
startActivity(i);
// callee activity
Bundle extras = getIntent().getExtras();
if (extras != null) {
mUrl = extras.getString("url");
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment