activities
Returns all activities currently in the stack with their visibility state. Multiple activities can exist for the same package.
Key = Package (String) Value = List of (Activity, Foreground) pairs
Return
Map of packages to their activities and foreground states
Parameters
ui Automation
The automation instance used for automated testing