A lot of time when I’m debugging my app, I click around and end up in an activity, but I’m not 100% sure which one. This happens in my latest project, which I inherited from someone else.
I want an easy method of figuring out which activity I’m currently in, not programmatically for the program to know, but for my brain. I see ActivityManager does say something like “Displayed activity foo” in logcat, but sometimes this message quickly goes away because of other logging.
Ideally, the current activity class would be displayed somewhere at all times, or there would be something similar to Firebug’s Inspect button but for activities. I looked around the DDMS perspective and didn’t find it there either.
Any ideas?
The hierarchyviewer is fine for this, but perhaps a bit heavy duty.
Try this from command line:
Every time you start a new activity there will a line printed.