Condition - App Task Running
The condition App Task Running checks whether a task for one of the specified packages is currently running.
Warning: This function is not officially supported by Android 5+ and might not work on all devices.
Settings
Method
How the app should be determined. Method Usage statistics can be delayed on some devices.
Package Name
The name of the app to check. Glob patterns (*, ?) are supported. Variables are supported.
check most recent app task only
if only the most recent app task should be checked (this is the active app on many Android versions)
Warning: This option must be activated on Android 5+.
Warning: This option must be activated on Android 5+.
A variable is a container for a value that can be used in many actions and conditions to dynamically define a part of a text.
See action Script for a description.
See action Script for a description.
Supplied Variables
package_name
the package name of the foreground app
index
(not available on Android 5+)the index of this task. An index of zero denotes the most recent running task.
base_activity
(not available on Android 5+)the component launched as the first activity in the task
top_activity
(not available on Android 5+)the activity component at the top of the history stack of the task
id
(not available on Android 5+)a unique identifier for this task
num_running
(not available on Android 5+)the number of activities that are currently running (not stopped and persisted) in this task
description
(not available on Android 5+)a description of the task's current state