How to copy screenshot from emulator to PC?

713 views Asked by At

Am using Robotium for automation of android app testing. Using the command solo.takeScreenshot(), I was able to take screenshot and the image is stored in the SDcard > Robotium-screenshots folder in the emulator. Is there any way by which the image from the emulator can be copied to the PC?

3

There are 3 answers

2
Prem On BEST ANSWER

In DDMS View - Choose your device.

Click on the camera icon in below snapshot. Screenshot of device can be saved to PC directly.

enter image description here

to copy the existing files from emulator to PC, go to File Explorer in DDMS View and browse to your file, click on the icon in below snapshot. enter image description here

0
gionnut On

try using adb commands

adb pull /sdcard/Robotium-Screenshots

files will be saved by default in adb folder (android-sdk\platform-tools)

1
W I Z A R D On

Do as shown in the images. step by step

Step 1:enter image description here

enter image description here

In DDMS Select the devices.

Step 2:enter image description here

Step 3:enter image description here