Android Task Stack running rules and android task rules

Source: Internet
Author: User

Android Task Stack running rules and android task rules

I. Foreground stack indicates application A, and background stack is application B's foreground stack/taskAffinity/launchMode background stack/taskAffinity/launchModeActivityB/com. lpn. testone/singleTask ActivityD/com. lpn. modeopj/standardActivityA/com. lpn. testone/singleTask ActivityC/com. lpn. modeopj/standard starts C of the background Stack from B of the foreground stack. The result is that the D stack of the background stack is started directly: search for/taskAffinity/launchMode foreground stack/taskAffinity/launchModeActivityB/com in the background. lpn. testone/singleTask ActivityD/com. lpn. modeopj/standardActivityA/com. lpn. testone/singleTask ActivityC/com. lpn. in this case, modeopj/standard starts interface a on interface d. As A result, stack B is destroyed: The frontend looks for/taskAffinity/launchMode background stack/taskAffinity/launchModeActivityA/com. lpn. testone/singleTask ActivityD/com. lpn. modeopj/standard ActivityC/com. lpn. modeopj/standard 2: The stack jump/taskAffinity/launchMode // taskAffinity value can be used with singleTask mode in the same application, but it is invalid with standard/singleTop, singleInstance does not require ActivityA/com. neng. dong/singleTaskA starts an ActivityB/android. task. browser/standard Stack: ActivityB/android. task. browser/standardActivityA/com. neng. dong/singleTask B starts an ActivityC/android. taskkk. browser/singleTask Stack: Stack 1, stack 2, ActivityB/android. task. browser/standard ActivityC/android. taskkk. browser/singleTask ActivityA/com. neng. dong/singleTaskC starts an ActivityD/com. neng. dong/singleInstance Stack: Stack 1 stack 2 stack 3 ActivityB/android. task. browser/standard ActivityC/android. taskkk. browser/singleTask ActivityD/com. neng. dong/singleInstance ActivityA/com. neng. dong/singleTask

 

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.