I have 3 Activities. StartupActivity, LoginActivity and PinActivity
.
StartupActivity starts PinActivity with startActivity
and flag Intent.FLAG_ACTIVITY_REORDER_TO_FRONT
In StartupActivity I have a REST API call which gets successful and LoginActivity
is started.
BackStack
StartupActivity -> PinActivity -> LoginActivity
Now LoginActivity starts PinActivity for result
with startActvityForResult
and flag Intent.FLAG_ACTIVITY_REORDER_TO_FRONT
In this case, PinActivity
was already in the back stack and So it is brought to the front. When a user enters the pin and press OK button
, I have been setting result using the setResult
method and finishing PinActivity
, but no result is received in LoginActivity
(PinActivity was started from LoginActivity with startActivityForResult
).