Android activity startup mode, androidactivity

Source: Internet
Author: User

Android activity startup mode, androidactivity

I. activity startup 4 middle mode:

2. The standard mode is the default start mode. A new instance will be created each time you start the instance. onCreate, onStart, and onResume will be called. A task stack can contain multiple instances, and each instance can belong to a different task stack. If A starts B (standard), B will be in the job stack where A is located. You can specify a new job stack for FLAG_ACTIVITY_NEW_TASK during startup.

SingleTop is located at the top of the stack. If yes, it will not be created. Otherwise, a new instance will be created.

If a singleTask has a required job stack and the activity has been created, no new job is created. The job stack is created before the activity is created.

SingleInstance only exists in a single task stack

 

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.