显示返回的Andr​​oid栈Andr、oid

2023-09-12 04:58:01 作者:叫嚣野性

为了更好地理解的Andr​​oid,我想更多地了解后面堆概念的行为。有什么办法可以列出所有的活动,因为他们订购回堆栈。这也应该包括所有其他正在运行的任务。

For better understanding the behavior of Android I'd like to learn more about the back stack concept. Is there a way to list all activities as they are ordered in back stack. This should also includes all other running tasks.

推荐答案

我发现在Android的工作室(0.5.1)该信息:查看 - >工具Windows的>安卓。然后在左侧选中系统信息图标,并从它的下拉菜单中选择图形状态。这将转储显示了大量的信息,但如果您向下滚动到查看层次:你将看到的美景当前堆栈,即返回堆栈

I have found this information is available in Android Studio (0.5.1): View->Tool Windows->Android. Then on the left hand side select the System Information Icon and from it's drop down select 'Graphics State'. This will dump show a lot of information, but if you scroll down to 'View hierarchy:' you will see the current stack of views i.e. the 'Back Stack'.

该任择议定书并询问正在运行的任务,所以,而是如果选择图形状态选择活动管理国家,你会发现更多的信息(虽然我发现它简单到图形状态查看信息专找什么活动都在背叠)。

The OP did ask about running tasks, so instead if selecting 'Graphics State' select 'Activity Manager State' and you'll find more information (although I found it simpler to view the information in 'Graphics State' for specifically looking at what Activities are in the back stack).