스크린 샷 하나 찍자고 매번 ddms 실행 시키는게 번거로와 찾아봤습니다.
android-sdk 설치와 android 빌드를 모두 해 보셨다는 가정하에 시작하겠습니다.

빌드된 android 소스의 루트에서..
out/host/linux-x86/bin/screenshot2
out/host/linux-x86/framework/screenshot2.jar

이 두 파일을(윈도에선 linux-x86 대신 다른 이름이겠죠?) 각각 android-sdk 루트에서 다음 위치들로..
tools/screenshot2
tools/lib/screenshot2.jar

복사해 주시면 쉘에서 바로 스크린 샷을 찍을 수 있습니다. (sdk를 제대로 설치하셨다면 이미 tools는 $PATH에 포함되어 있습니다.)

$ screenshot2
Usage: screenshot2 [-d | -e | -s SERIAL] [-l] OUT_FILE

    -d      Uses the first device found.
    -e      Uses the first emulator found.
    -s      Targets the device by serial number.

    -l      Rotate images for landscape mode.

다음과 같이 사용하시면 됩니다.
$ screenshot2 -d test.png

profile

the suapapa.