Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Capture screenshot in GenyMotion

I am using Genymotion for running android application. Could any one tell me how to capture screen shot in Genymotion ?

like image 551
kavie Avatar asked Feb 14 '14 05:02

kavie


2 Answers

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

enter image description here

like image 68
electronix384128 Avatar answered Oct 05 '22 12:10

electronix384128


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.

like image 39
Pavel Alexeev Avatar answered Oct 05 '22 13:10

Pavel Alexeev