Skip to content

Instantly share code, notes, and snippets.

@madcoda
Created May 26, 2014 10:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madcoda/e552604bb00e1849f4e7 to your computer and use it in GitHub Desktop.
Save madcoda/e552604bb00e1849f4e7 to your computer and use it in GitHub Desktop.
Quickly screencap on the Android device and pull to current working folder
# Add this to your ~/.bash_profile and restart the Terminal
function android-screencap(){
adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png
adb shell rm /sdcard/screen.png
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment