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

FLAG_ACTIVITY_NEW_TASK介绍

时间:2015-06-29 23:39:11      阅读:353      评论:0      收藏:0      [点我收藏+]

标签:

FLAG_ACTIVITY_NEW_TASK
Start the activity in a new task. If a task is already running for the activity you are now starting, that task is brought to the foreground with its last state restored and the activity receives the new intent in onNewIntent().
This produces the same behavior as the "singleTask" launchMode value, discussed in the previous section.
以上是谷歌官网的描述,里边的意思很清楚了,当有task运行了你要运行的activity,这个task会到前台并,并且这个activity会回调onNeewIntent(),而不是创建新的。

FLAG_ACTIVITY_NEW_TASK介绍

标签:

原文地址:http://www.cnblogs.com/younghome/p/4608987.html

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