首页 > 其他 > 详细

Activity 与 Task

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

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!