How to get current (foreground) activity name? Hoi! I'm trying to make an automatic night mode for my phone using "Automate", but I can't find certain app activities. How do I get to know what activities are executed in the foreground at the moment, so I can start it?
Using apps: Current Activity and some similar apps will display the info in the form of floating texts above the screen content.

Using adb (from your PC): dumpsys window windows | grep -E 'mCurrentFocus', or dumpsys activity top (for full info meant for developers)