I would question why you want to do this ... but here is the first thing that appeared in my head:
@Override protected void onCreate(Bundle savedInstanceState) { ... Log.v("Example", "onCreate"); getIntent().setAction("Already created"); } @Override protected void onResume() { Log.v("Example", "onResume"); String action = getIntent().getAction();
You must make "Already created" unique so that no other intention can accidentally complete this action.
Sam
source share