Zwiebel
Zwiebel

Reputation: 1615

How can I reach one activity's Intent from an another?

If I make for example an

 Intent i = new Intent();
 Bundle b = new Bundle();
 b.putString("Number", spinner.getSelectedItem);
 i.putExtras(b);

So If I want to reach this intent from an another activity, how Can I do this?

Upvotes: 2

Views: 257

Answers (1)

David Olsson
David Olsson

Reputation: 8225

In Android: How do I get variables/data from one screen to another?

In the onCreate in your second activity you would get the string by calling:

getIntent().getStringExtra("Number");

Upvotes: 1

Related Questions