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

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2065993/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 04:24:03  来源:igfitidea点击:

How to take emulator screenshots using Eclipse?

androideclipseandroid-emulatorscreenshoteclipse-3.5

提问by John Lechowicz

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

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

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

是否有内置功能,或者我是否必须下载某种插件?

回答by Dan Lew

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.

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

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

这相当于通过 DDMS 拍照,但您可以在 Eclipse 中完成,而无需打开另一个应用程序。

回答by Mr. Flibble

Screenshots on Android Devices using Eclipse, a Visual Guide

使用 Eclipse 的 Android 设备屏幕截图,可视化指南

Android Eclipse Screenshot step 1

Android Eclipse 截图步骤 1

Android Eclipse Screenshot step 2

Android Eclipse 截图步骤 2

Android Eclipse Screenshot step 3

Android Eclipse 截图步骤 3

回答by Mark B

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.

在 Eclipse 的 DDMS 透视图中,有一个“屏幕捕获”按钮。(确保你的 Android SDK 和 Eclipse 插件是最新的,不确定这是否总是一个选项)。只需按下该按钮,您连接 DDMS 的任何设备(真实的 Android 设备或模拟器)的屏幕截图将被创建并在新窗口中打开,您可以在其中将其另存为 png。

回答by dxh

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.

您通常通过 Eclipse 用您的应用程序加载模拟器,但您从 DDMS 中获取实际屏幕截图,DDMS 是一个包含在您的 SDK 中的工具,位于“工具”文件夹下。

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

在 DDMS 中,按 Ctrl+S 进行屏幕截图。

回答by Sunishtha Singh

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.

1-打开 DDMS 说明,右键单击鼠标。2-点击导出截图。3-然后它会向您显示将文件另存为 .png 文件的选项,您可以使用您喜欢的任何名称保存它。

回答by Ron

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?

我只是做一个控制打印屏幕,将图像复制到剪贴板,然后打开 MS Paint 然后做一个控制 Z。然后你可以根据自己的喜好裁剪和调整大小。这个可以吗?