by Fran T
Version 3 (March 25, 2026)
Download (161 downloads)
These flows demonstrate getting information about the Android Launcher in use on the device, and to act when it's showing the Desktop and/or Recent Apps.
The subroutine at block 36 demonstrates how the launcher app can be automatically determined.
The 'Recents or Desktop' and 'Wait for Desktop' flows have been tested with the Google Pixel and Samsung One UI launchers.
With thanks to /u/Petrified_Powder!
Updates:
• Updated depreciated UI inspection method
• Updated for Android 14