Last active
August 29, 2015 14:00
-
-
Save manan19/11236474 to your computer and use it in GitHub Desktop.
Bash command to know what android activity is currently in the foreground
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adb shell dumpsys window windows | grep -E 'mFocusedApp' | cut -d'/' -f 1 | cut -d' ' -f 7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment