3

Is there a way to see the stack activity of my own application?

Ry-
  • 218,210
  • 55
  • 464
  • 476
Damiii
  • 1,363
  • 4
  • 25
  • 46

2 Answers2

3

type this in the command line:

 adb shell dumpsys activity

or

 adb shell dumpsys activity activities

(second one gives a shorter stack)

Source

Community
  • 1
  • 1
Rachel Gallen
  • 27,943
  • 21
  • 72
  • 81
1

I think what you need is Hierarchy Viewer. You can see the Activity stack in Hierarchy Viewer.

bakriOnFire
  • 2,685
  • 1
  • 15
  • 27
  • it is saying "ViewServerDevice]Unable to debug device: samsung-gt_i9505-4807291a" :/ – Damiii May 25 '13 at 16:42
  • u got Hierarchy Viewer in eclipse? – bakriOnFire May 25 '13 at 16:58
  • so now..whats' the problem?..can u see the activity stack?..just try to run your app and check.. – bakriOnFire May 25 '13 at 17:03
  • "HierarchyViewer does not work on user builds (i.e. with devices available in stores.) This is for security reasons. If HiearchyViewer was able to work on user builds, any application on your desktop (or even on the phone in some cases) could potentially get access to private information (like logins and passwords.)" – Damiii May 25 '13 at 17:04
  • yes i did run, and it wasn't showing. Maybe due to that error "Unable to get view server protocol version from device" – Damiii May 25 '13 at 17:05