How to see the activity stack in debug?

后端 未结 1 1730
闹比i
闹比i 2021-02-06 05:37

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条回答
  • 2021-02-06 05:40

    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:
    enter image description 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.

    0 讨论(0)
提交回复
热议问题