clearTaskOnLaunch方法文档? [英] clearTaskOnLaunch HowTo?

查看:173
本文介绍了clearTaskOnLaunch方法文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

阅读href="http://developer.android.com/guide/topics/manifest/activity-element.html#clear" rel="nofollow">的Andr​​oid文档和部分的

Reading the Android documentation and some of the answers here have left it ambiguous how clearTaskOnLaunch is supposed to work. Specifically

1)如何根系活力识别呢?难道仅仅是一个与默认设置,启动器或主要意图过滤器?

1) How is the root activity identified? Is it simply the one with the DEFAULT, LAUNCHER or MAIN intent filters?

2)从主屏幕的文档中激励装置的操作系统主屏幕或应用程序列表中,是否正确?即从没有一个应用程序内。

2) Launching from "home screen" in the documentation means the OS home screen or applications list, correct? I.e. from not within an application.

3)是否clearTaskOnLaunch清除每当该活动是从主屏幕推出,或活动堆栈就在该活动的的过程的是从主屏幕开始了吗?因为文档表明前者,但这里的职位表明了后者。我想这取决于什么的发射的定义。

3) Does clearTaskOnLaunch clear the activity stack whenever that activity is launched from the home screen, or just when that activity's process is started from the home screen? Because the docs indicate the former, but posts here indicate the latter. I guess this depends on what the definition of "launch" is.

编辑: 4)不执行清理活动栈的确切意思擦除,或具有活动循环的onCreate()和结束()?

4) Does "clearing" the activity stack mean literally erasing it, or having the activities cycle through onCreate() and finish()?

我在各方面都可以想象,完全没有影响操控clearTaskOnLaunch。我已经把它在我的清单根系活力,然后把它放在每一个活动只是可以肯定,重新启动完全查杀过程中,等我的活动栈根本就没有被清除后,我的申请。

I've manipulated clearTaskOnLaunch in every way imaginable with absolutely no effect. I've placed it in my root activity in the manifest, then placed it in EVERY activity just to be sure, restarted my application after killing the process entirely, etc. My activity stack is simply not being cleared.

任何人都可以提供关于如何实现clearTaskOnLaunch完整的概述?

Can anyone offer a complete overview on how to implement clearTaskOnLaunch?

推荐答案

下面是从群体的Andr​​oid的工程师,一个完整的响应:的http://groups.google.com/group/android-developers/browse_thread/thread/da024bcaf4e1960f

Here's a complete response from an Android engineer on Groups: http://groups.google.com/group/android-developers/browse_thread/thread/da024bcaf4e1960f

这篇关于clearTaskOnLaunch方法文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆