返回堆栈和历史堆栈有什么区别?

bca*_*use 5 android back-stack android-navigation

我正在检查如何使用空的返回堆栈启动活动,并遇到了该android:noHistory属性。它做了我想要的,但我仍然对文档中使用的术语“历史堆栈”感到好奇android:noHistory。我在 API 指南中没有注意到该术语的任何用法(例如任务 和 Back Stack),那么返回堆栈和历史堆栈之间是否有任何区别,或者它们只是同一件事?

更新

到目前为止,参考文献中使用了三个术语:

历史堆栈

返回堆栈

活动堆栈

这个问题可能会开始变得挑剔,因为它们似乎都可以互换使用,但我仍然有兴趣知道它们之间的差异(如果有的话)。

Sim*_*Guy 1

嗯,我觉得他们都是一样的

从这个 http://developer.android.com/guide/topics/manifest/activity-element.html#nohist

android:noHistory
A value of "true" means that the activity will not leave a 
historical trace. It will not remain in the activity stack 
for the task, so the user will not be able to return to it.
Run Code Online (Sandbox Code Playgroud)

所以

历史轨迹=活动堆栈(保存最近的活动)=历史堆栈

我们都知道,BackStack是举办最近活动的地方。

所以,所有的事情几乎都是一样的。