User Tools

Site Tools


android:android_take_screenshot

This is an old revision of the document!


Android Task Screenshot with Command

From: http://linuxtoy.org/archives/one-line-to-capture-screenshot-on-android.html

General you can press both the volume(-) and power on button to take a screenshot,but for a developer you can use a command to do it in a awesome way.

On Linux:

adb shell screencap -p | sed 's/\r$//' > screen.png

On OS X:

adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > screen.png
/var/www/dokuwiki/wiki/data/attic/android/android_take_screenshot.1462424822.txt.gz · Last modified: 2016/06/02 14:21 (external edit)