Android onStop () is not called when starting a new action in multi-window mode

I am trying to use the Android N multi window function and I started to be embarrassed when starting a new action. The problem is that when I start a new action, the onStop() does not start, and when I click the back button from this new action to return to the previous one, the previous onStart() does not start.

Does anyone know what is going on?

--- Edited

ActivityOptionsCompat.makeSceneTransitionAnimation seems to have something to do with this.

+6
source share
1 answer

Here is the android life cycle:

AndroidLifecycle

If you call another application in multi-window mode, your application is still "partially visible", so onPause() is called, but onStop() not.

When restarting, it is the same: onResume() is called, but onStart() not.

+7
source

All Articles