User Tools

Site Tools


android:android_take_screenshot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
android:android_take_screenshot [2016/05/05 13:07] – external edit 127.0.0.1android:android_take_screenshot [2016/06/02 14:21] (current) percy
Line 9: Line 9:
 On OS X:   On OS X:  
   adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > screen.png   adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > screen.png
 +
 +
 +====== android_screenshot script ======
 +
 +<file Bash>
 +#!/bin/sh
 +
 +file=`date +%y%H%M%S`
 +if [ ${#} == 1 ];then
 +   file=${1}
 +fi
 +
 +echo "Take android screenshot as ${file}.png"
 +
 +adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > ${file}.png
 +</file>
  
/var/www/dokuwiki/wiki/data/attic/android/android_take_screenshot.1462424822.txt.gz · Last modified: 2016/06/02 14:21 (external edit)