I have an activity called EntranceActivity
which routes to other activities based on a few different parameters.
This Activity
is ClearTop
-ed, such that I can startActivity(...EntranceActivity...)
and re-route through the EntranceActivity
logic without having to worry about little nuances. It is also the only entrance point to the application when returning to foreground.
I need to be able to determine when this Activity
is being pushed to the foreground from the beginning
(from first launch / from being in background) vs when I am routing to it during the app usage. (i.e. from Activity2
back to EntranceActivity
)
The following question shows how to determine if the app is in the foreground... but the EntranceActivity
will only execute when the app is in the Foreground
, so that does not seem to be what I'm looking for.