How to see the activity stack in debug?

半腔热情 提交于 2020-01-12 03:29:07

问题


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:


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-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.



来源:https://stackoverflow.com/questions/11372494/how-to-see-the-activity-stack-in-debug

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!