Capturing a screenshot in GenyMotion

I am using Genymotion to run an Android application. Can someone tell me how to take a screenshot in Genymotion ?

+73
android emulator genymotion
Feb 14 '14 at 5:21
source share
12 answers

Disclaimer: I am part of the same company as the Genymotion team.

This feature is included in the product. This is one of the paid features of the screencast widget. Take a look at the pricing page here .

Two ways to access it:

  • pay pro or indie license
  • use the trial version, it offers you indie features. Be careful , there is only one trial day left: - /

Once your virtual machine is running, open the screencast widget

enter image description here

Then take a picture using the highlighted button

enter image description here

UPDATE: Below you can take a screenshot using Android Device Monitor or command line

+30
Feb 14 '14 at 14:12
source share

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

enter image description here

+188
Apr 15 '14 at 19:28
source share

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

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

This article has the following information: 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 a screenshot in Terminal and get a screenshot of the currently running emulator in the download directory.

+48
Jun 19 '14 at
source share

Use the following commands:

  • Window:

     C:\"Program Files"\Genymobile\Genymotion\tools\adb shell screencap -p "/mnt/sdcard/output.png" && C:\"Program Files"\Genymobile\Genymotion\tools\adb pull "/mnt/sdcard/output.png" "C:\output.png" && C:\"Program Files"\Genymobile\Genymotion\tools\adb shell rm "/mnt/sdcard/output.png" 
    • Note. Make sure you have write permission in C:\output.png ; otherwise, change it to any desired path.
  • OS X:

     /Applications/Genymotion.app/Contents/MacOS/tools/adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > ~/Desktop/Android_Screenshot_$(date +%Y-%m-%d-%H-%M-%S).png 
+23
Feb 05 '16 at 16:32
source share

I think you can also shoot video for free. Genymotion uses VirtualBox to perform almost all of the heavy operations, so you should open VirtualBox and see what you can do with it.

In Virtualbox, you will find options for capturing video! enter image description here

+11
Feb 18 '14 at 22:18
source share

adb shell screencap -p / sdcard / screen.png

+7
Feb 01 '15 at 10:21
source share

If your Mac is slow and you hate running Eclipse, and the emulator together is a faster way.

  • Export your apk.
  • Launch Genymotion.
  • Drag and drop apk into emulator to install it.
  • Go to 'android-sdk-macosx> tools> ddms'.
  • Run this file.
  • A new instance of ddms will be launched. Unlike Eclipse, this does not slow down your system.
  • Use the Menu> Device> Screenshot option to take a screenshot.

This is a good option for those who use slow computers.

+5
Jul 16 '14 at 6:02
source share

If you use Eclipse, follow the instructions for any type of emulator: 1. Select DDMS 2. In the DDMS Devices window, select Genymotion Device 3. Click the camera icon and save it in a specific location. In Devices window just click on Camera icon. I already mark it by circle here

+3
Mar 10 '15 at 5:32
source share

For Linux and Windows (I used gitbash on windows) adb shell screencap -p | sed 's/\r$//' > screen.png adb shell screencap -p | sed 's/\r$//' > screen.png For Mac 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

+2
Dec 18 '14 at 10:07
source share
  • Choose a genymotion simulator
  • Press the shortcut key below

    • Windows: Ctrl + Shift + S

    • Mac: Cmd + Shift + S

  • You can find screenshots on your desktop

+2
Oct 07 '17 at 6:25
source share

@Reck says that there is a mistake in the implementation of Genymotion, so we can not take screenshots on 2.3.7. This means that Android Studio / DDMS cannot get the correct pixels. adb shell screencap says that there is no screencap command.

Assuming you have access to the code, you can simply call this method:

 public static void screenshot(View view) { Bitmap bitmap = Bitmap.createBitmap(view.getWidth(), view.getHeight(), Bitmap.Config.ARGB_8888); view.draw(new Canvas(bitmap)); String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date()); try { File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS); storageDir.mkdirs(); File file = File.createTempFile(timeStamp, ".png", storageDir); bitmap.compress(Bitmap.CompressFormat.PNG, 0, new FileOutputStream(file)); Log.i("SCREENSHOT", "adb pull " + file); } catch (IOException e) { Log.e("SCREENSHOT", "Cannot save screenshot of " + view, e); } } 

In action:

 screenshot(getWindow().getDecorView()); 

In the fragment:

 screenshot(getActivity().getWindow().getDecorView()); 

The only limitation that I know is that it will not include a status bar.

0
Sep 26 '14 at 13:19
source share

if you are using a Mac, sometimes CMD + Shift + 4 (screenshot of the selected part in OSX), and then selecting the area of ​​the simulator is enough :)

0
Feb 12 '17 at 12:18
source share



All Articles