Android-Boot mode (singletask boot mode)

Source: Internet
Author: User

Below we change the activity's start mode to Singletask.

1, look at the picture, our a page taskid=23, instance =*82a8

2, we click "Jump B Page Activity" button, instance =*2428

3, we click on the "Jump a page Activity" button, the instance =*82a8, found that the instance becomes the first step of the instance.

4. When we click the Back button, the application will exit directly. If there is any discovery, in the third step, the task stack pops up a B instance, showing an instance of a . This is the feature of the Singletask startup mode.

It is easy to understand that each activity will have only one instance in the same task stack, and when this instance is called, it is found in the task stack and all instances of the task stack are ejected.

Android-Boot mode (singletask boot mode)

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.