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

Next revision
Previous revision
android:android_take_screenshot [2013/08/26 10:37] – created percyandroid: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/pages/android/android_take_screenshot.txt · Last modified: 2016/06/02 14:21 by percy