app_current
Retrieve the foregrounded Android app's package name and activity to identify which application is currently in focus on the device.
Instructions
Get the currently foregrounded app package name and activity.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | Device serial number |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| activity | Yes | Foreground activity name, if resolvable | |
| packageName | Yes | Package name of the foreground app |