Yesterday Google released Android N Preview, Balabala ....
I use the simulator to verify, through the long-press Multi-task window (port) into the split-screen mode, here only a simple test, do not exclude by configuring which parameters, the life cycle has other changes,
- Long Press (port), activity first calls onmultiwindowchanged->onpause->onstop->ondestroy->oncreate->onstart-> Onresume->onpause (Focus cut to another screen)
- Back and forth focus (onpause->onresume back and forth, which proves that if the app is playing, the pause cannot be placed inside the OnPause)
- Drag the window size back and forth when dragged to 1/3, or 2/3, the lifecycle is destroyed and restarted before entering into OnPause or onresume (depending on whether there is a focus)
- Split-screen mode into the desktop if there is focus call OnPause, no focus will not occur life cycle changes!
Android N Split-screen mode activity life cycle changes