A Groovy script to take screenshots of an Android device
Groovy
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
andrcap

README.md

android-screencapture

A Groovy script to take screenshots of an Android device

This is a Groovy script (without the .groovy extension), set up to run from the Linux / OS X shell. It uses the ddmlib Android library version r13 via Grape.

The script is very no-frills - it captures the first hardware device that it finds, at the resolution of the device, and writes out a .png file

Based on code found at https://github.com/roman10/roman10-android-tutorial/blob/master/screenshot/src/com/android/screenshot/Screenshot.java