I have an application with the following flow:
Loading activity -> activity 1 -> activity 2
where the loading activity is closed using finish()
after launching activity 1.
When clicking the home button and then relaunching it after a while (seems to be 30 minutes or more), I was expecting one of the following behaviors:
- The activity is still alive - continue from activity 2.
- The activity was killed - restart from the loading activity.
However, what happens is that the app starts from activity 1
. I'm assuming this means that the activity task was cleared, because if the loading activity is not being closed, the app starts there (but I do need to close it).
Is that assumption correct or is there a different explanation behind this? What can be done in order to have the app relaunch from the loading activity in this scenario?