怎么看在调试活动栈? [英] How to see the activity stack in debug?

查看:271
本文介绍了怎么看在调试活动栈?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,我的活动之一后,突然跑出的我觉得的我完成了。

I have a problem that one of my activities is popping out after I think I finished it.

有没有办法看到活动的堆栈?

Is there a way to see the stack of the activities?

推荐答案

1,您可以使用层次浏览器的Eclipse 。你可以看到所有连接的设备和仿真器和活动堆栈。而且除了在树视图中,可以看到关于该视图本身更多的信息:

1-You can use Hierarchy Viewer within Eclipse.You can see all connected devices and emulators and the activity stack. And in addition in the tree view you can see much more information about the view itself:

2,从命令行,你可以这样做:亚行外壳dumpsys活动。这要求活动管理者要打印的当前状态转储。那第一部分是完整的活动历史,按任务组织。
你可以看到更多的细节<一个href="http://stackoverflow.com/questions/2442713/view-the-tasks-activity-stack"><$c$c>here.

2-From the command line, you can use this: adb shell dumpsys activity.This asks the activity manager to print a dump of its current state. The first part of that is the complete activity history, organized by task.
You can see more details here.

这篇关于怎么看在调试活动栈?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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