Using intent.getStringExtra from within an activity

Lakshmie picture Lakshmie · May 27, 2010 · Viewed 8.3k times · Source

I am relatively new to android. I have two applications A and B. I have an activity in A, lets name it x, that would launch the application B. Now the intent sent by x contains StringExtra that I want the Starting activity in B to use. Is there a way for the activity in B to do that?

Thanks!

Answer

jasonhudgins picture jasonhudgins · May 30, 2010

In Activity B:

getIntent().getStringExtra("KEY");