While developing a sample android application i have constructed two activities 1)Activity 1 2)Activity 2
Now Activity 2 is the foreground activity whereas Activity
The launch mode of your activity can affect the behaviour when it is relaunchd after pressing home. If the first activity was launched as singletask or singleinstance then , its always the first activity that will be resumed.
If activities are launched using default launch mode, then when the application is restarted, the previous activity will be resumed