I'm currently in a different Activity. How can I get the main launch Activity's Intent?
Intent launchIntent = getIntent();
In the above, obviously getIntent()
would not get me the correct Intent
that I need.
How can I get the main launch Activity
's Intent
?
When
Activity1
loads, grab theBundle
associated with it's launch.When
Activity2
is launched, put these same extras into your newIntent
, and pass it on toActivity2
.You can't just access an
Intent
from a different activity, you need to pass the information along.Replace pics and getInt as needed.