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