Take the 2-minute tour ×

How to pass a parameter to an application that I call from my Application?

share|improve this question

1 Answer 1

You're starting your other activity with an Intent. It should look similar to this code:

Intent intent = new Intent(FirstActivity.this, SecondActivity.class);

Then you can add a line of code to pass parameters (e.g. Strings):

intent.putExtras("key", "value");

Note: you should add this line before starting the activity ;)

share|improve this answer
Note that it's putExtra not putExtras. putExtras has another signature. –  Alexandru Badiu Nov 8 '11 at 15:04

Your Answer


