This trigger will fire whenever the recent apps/task switcher screen is launched. It detects when the user accesses the Android task manager interface.

Options

This trigger has no configurable options. It simply fires when the recent apps screen is displayed.

Requirements

  • Accessibility Service must be enabled

Compatibility

This trigger is only available on Android 8 (Oreo) and below (API level 27 and earlier). On newer Android versions, the trigger is not supported due to changes in how Android handles accessibility events for system UI components.

Examples

Example 1: Log recent apps usage

Track when you access the task switcher:

Triggers

Recent Apps Opened
Actions

Log to file (append): "Task switcher opened at [hour]:[minute]:[second]"

Example 2: Clear clipboard on task switch

Automatically clear the clipboard when accessing recent apps for privacy:

Triggers

Recent Apps Opened
Actions

Clear Clipboard

Notes

  • This trigger requires the MacroDroid Accessibility Service to be enabled
  • The trigger monitors for the Android System UI RecentsActivity
  • Due to Android restrictions on newer versions, this trigger may not function on devices running Android 9 (Pie) or later
  • The trigger fires instantly when the recent apps screen is detected