Capture screenshot in GenyMotion

If you are using Android Studio or Eclipse, you can just click the button "Screen Capture" in the Android DDMS:

enter image description here


You can use adb to get the screenshot from command line:

adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > screen.png

This article has the details: http://blog.shvetsov.com/2013/02/grab-android-screenshot-to-computer-via.html

To make my life easier, I made an alias in .bash_profile:

alias screenshot="adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > ~/Downloads/android_screenshot.png"

Now I can type screenshot in Terminal and get a screenshot of currently running emulator in my Downloads directory.