Skip to content

Instantly share code, notes, and snippets.

@manan19
Last active August 29, 2015 14:00
Show Gist options
  • Save manan19/11236474 to your computer and use it in GitHub Desktop.
Save manan19/11236474 to your computer and use it in GitHub Desktop.
Bash command to know what android activity is currently in the foreground
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