First of all, I read a great explanation of how actions begin, pause, resume, and stop . This is normal, but I have a different problem.
The activity lifecycle diagram in the Android link says that if I call another action, onPause () is called for the calling activity, and later, when the other action is completed, the caller will be resumed via onResume ().
So, if the first activity is Main, and the other is Other, the loop will look like this (pseudocode):
Main.onCreate() Main.onStart() Main.onResume() // Main is running... Then, the user clicks a button and Other comes in front. Main.onPause() Other.onCreate() // Other lifecycle goes here... Finally, the user returns back. Main.onResume() // Main is running again.
This is what the chart reports. But my Main gets onStart () first, then onResume ().
Why? Do I not understand something?
source share