How to take emulator screenshots using Eclipse?
Asked Answered
A

6

174

I need to take screenshots of an android application running on an emulator in Eclipse Galileo.

Is there a built-in feature for this or do I have to download a plugin of some sorts?

Antonio answered 14/1, 2010 at 17:9 Comment(1)
Here's an easy screenshot showing how - goo.gl/3iO8wVinificator
V
292

You can take a screenshot if you open the Android view "devices" (under Window --> Show View --> Other... --> Android --> Devices). Click on the device or emulator you want to take a screen shot of, then click the "Screen Capture" button (it looks like a little picture, and it should be next to a stop sign button). Occasionally the device won't immediately load the picture; sometimes you have to close/reopen the screen capture window.

This is equivalent to taking a picture via DDMS, but you can do it in Eclipse instead of opening another application.

Vanthe answered 14/1, 2010 at 17:39 Comment(6)
this is excellent. 'emulator control' + 'devices' rids me the need for ddms altogetherBeitz
Why is such an essential feature hidden away in these obscure menus? Thanks, man.Croat
Getting a blank screen when I take screen shotDiagnose
@Diagnose Make sure to uncheck 'Use Host GPU' for the AVD you are debugging in the Android Virtual Device Manager. I think this is a known bug.Fascine
@Dennis: if I uncheck 'Use Host GPU', I can't be able to launch emulator, it just showing black screen but does not start. do you have any idea on that ?Duval
@Duval It might be a bug with high res targets and/or scaling when 'Use Host GPU' is off. I couldn't start a Nexus 10 with -scale .75, but I could start a 10.1" WXGA with no scaling.Cousteau
S
152

Screenshots on Android Devices using Eclipse, a Visual Guide

Android Eclipse Screenshot step 1

Android Eclipse Screenshot step 2

Android Eclipse Screenshot step 3

Steer answered 15/12, 2011 at 16:44 Comment(3)
Great, thanks. Note that there's no need to use the Other... submenu and dialog, as Devices is also the 4th item from the top in the Show View submenu.Samalla
i wish if i can put +100 for u !Spittle
it should be the accepted answer because of the screenshotMarnamarne
S
14

In the DDMS perspective in Eclipse there is a "Screen Capture" button. (Make sure you have your Android SDK and Eclipse plugin up to date, not sure this was always an option). Just press that button and a screenshot of whatever device you have DDMS connected to (either a real Android device or the emulator) will be created and opened in a new window where you can save it as a png.

Sporades answered 14/1, 2010 at 19:57 Comment(0)
B
9

You load the emulator with your app normally, through Eclipse, but you take the actual screenshot from DDMS, a tool that's included in your SDK, under the "tools" folder.

In DDMS, press Ctrl+S to take a screenshot.

Beitz answered 14/1, 2010 at 17:15 Comment(1)
Great! The standalone DDMS is deprecated now. Any idea how to use Android Device Monitor?Supposititious
F
4

1-open the DDMS prescriptive,the right click on mouse. 2-there click on export screenshot. 3-then it will show you option to save your file as .png file,with whatever name you like you may save it.

Fatness answered 19/2, 2013 at 11:40 Comment(0)
W
0

I just do a control print screen, which copies the image into the clipboard, then open MS Paint then do a control Z. Then you can crop and size it to your liking. Is this ok?

Wilhelmstrasse answered 23/2, 2011 at 2:45 Comment(2)
this is a long process and tends to be inefficient. it would be easier for you if you could try one of the above methods.Spacecraft
For some reason the normal capture through DDMS does not work even if the device is visible and LogCat working. The method is a last resort then.Shane

© 2022 - 2024 — McMap. All rights reserved.