码迷,mamicode.com
首页 > 其他好文 > 详细

Activity 与 Task

时间:2017-02-03 22:50:35      阅读:218      评论:0      收藏:0      [点我收藏+]

标签:collect   strong   nbsp   guid   new   into   new t   art   system   

Activity 与 Task

  A task is a collection of activities that users interact with when performing a certain job. The activities are arranged in a stack (the back stack), in the order in which each activity is opened.

  A new activity is, by default, launched into the task of the activity that called startActivity(). It‘s pushed onto the same back stack as the caller. However, if the intent passed to startActivity() contains theFLAG_ACTIVITY_NEW_TASK flag, the system looks for a different task to house the new activity. Often, it‘s a new task. However, it doesn‘t have to be. If there‘s already an existing task with the same affinity as the new activity, the activity is launched into that task. If not, it begins a new task.

参考:http://android.xsoftlab.net/guide/components/tasks-and-back-stack.html

Activity 与 Task

标签:collect   strong   nbsp   guid   new   into   new t   art   system   

原文地址:http://www.cnblogs.com/tekkaman/p/6363618.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!