Android N Split-screen mode activity life cycle changes

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.