Are there any tools for displaying the current task's Activity stack? I'd like to do some debugging, e.g.: check to see if a specific Activity always starts in a new task, and things like that. But i couldn't find any tooling for this.
Thanks
1): View->Tool Windows->Android. Then on the left hand side select the System Information Icon and from it's drop down select 'Graphics State'. This will dump show a lot of information, but if you scroll down to 'View hierarchy:' you will see the current stack of views i.e. the 'Back Stack'.
A task is a collection of activities that users interact with when trying to do something in your app. These activities are arranged in a stack—the back stack—in the order in which each activity is opened. For example, an email app might have one activity to show a list of new messages.
In the second activity, the back button at the top left can be used to go back to the previous activity.
I normally run "adb shell dumpsys activity" against the emulator or device, that dumps a whole bunch of info, including the activity stack. Takes a little poking around to understand all the info, but it's there.
If there is a way to get it from DDMS, someone please post it. I haven't run across it yet.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With