如何使用 Eclipse 获取模拟器截图?

我需要截取在 Eclipse Galileo 的模拟器上运行的 Android 应用程序的屏幕截图.

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?

推荐答案

如果打开Android视图设备"(在Window --> Show View --> Other... --> Android下可以截图--> 设备).单击要截屏的设备或模拟器,然后单击屏幕捕获"按钮(它看起来像一张小图片,应该在停车标志按钮旁边).有时设备不会立即加载图片;有时您必须关闭/重新打开屏幕捕获窗口.

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.

这相当于通过 DDMS 拍照,但是您可以在 Eclipse 中进行,而不用打开另一个应用程序.

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

相关文章