In my navigation the following sequence of activities can be produced: A,B,C,B,C,B,C, ..., D.
D activity contains an overriden method for the Back-button, which sends user to the A activity with Intent.FLAG_ACTIVITY_CLEAR_TOP
parameter.
Activity A receives a number of necessary extra parameters and my problem is that when I trigger startActivity in D activity with this CLEAR_TOP flag activity A doesn't seem to get any previous extra or even launch onResume method.
Does it mean that CLEAR_TOP actually recreates
the target activity instead of bringing up the old one ? And, is there any system-natural approach to restore those extra intent
parameters in activity A when I launch it from activity D.
P.S. Right now the only choice I see is to manually fillin those previous necessary parameters when constructing intent object in D activity. Is it a way to go ?
Thanks.