我有一个问题,我的活动之一后,突然跑出的我觉得的我完成了。
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活动
。这要求活动管理者要打印的当前状态转储。那第一部分是完整的活动历史,按任务组织。
你可以看到更多的细节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
.
相关推荐
最新文章