Foreground
foregroundRetrieve the active Android app's package and activity plus whether a crash dialog is visible; use this lightweight check instead of a full snapshot when that data is all you need.
Instructions
Get just the foreground app: package, activity, and whether a crash dialog is showing. Cheaper than a full snapshot when you only need this.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||