OnResume is not called when I restart the application after pressing the home button

So, I have my main activity, and when you click the button, it starts activity2. As soon as Activity2 starts, I press the home button and it activates onPause in Activity2, and then up the screen on the Android device. Everything is fine.

The problem is this: now I click on the application icon and instead of entering the top activity2 (last active), my main activity comes. Therefore, onResume is not called for Activity2, but for my main activity.

Is it supposed to be called onResume on activity2? How can I make it work?

+3
source share
2 answers

, , .

, , , , .

, , , , .

+1
0

All Articles