I am currently engaged in other activities. How can I get the main launch of an Activity Intent?
Intent launchIntent = getIntent();
In the above example, obviously getIntent()will not give me the correct Intentone that I need.
getIntent()
Intent
How can I get the main launch Activity Intent?
Activity
import android.os.Bundle; Bundle extras = getIntent().getExtras(); if (extras != null) { pics = extras.getInt(KEY_HERE); }
Replace pics and getInt as needed.
When it Activity1boots up, take Bundleit associated with the launch.
Activity1
Bundle
When it starts Activity2, put the same extra features in your new one Intentand pass it on Activity2.
Activity2
Intent , .