Skip to content

Instantly share code, notes, and snippets.

@gipi
Created October 19, 2011 14:57
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 gipi/1298537 to your computer and use it in GitHub Desktop.
Save gipi/1298537 to your computer and use it in GitHub Desktop.
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