ARTICLE AD BOX
I'm developing an AppLocker application that runs in the background. My goal is to detect when the user opens the "Recent Apps" (Overview) menu so I can immediately display an overlay view.
I'm using PACKAGE_USAGE_STATS (Usage Access) to monitor foreground usage and SYSTEM_ALERT_WINDOW for the overlay. However, I have a strict requirement not to use AccessibilityService.
Is there a reliable way to detect that the "Recent Apps" screen is currently active solely by using UsageStatsManager?
