我正在使用Genymotion来运行安卓应用程序。谁能告诉我如何在中截取屏幕截图?
发布于 2014-02-14 22:12:02
免责声明:我和Genymotion团队是同一公司的一员。
此功能已包含在产品中。这是screencast小部件的付费功能之一。Look at the pricing page here。
访问它有两种方式:
虚拟机启动后,打开screencast小部件
然后用专用按钮拍照
更新:下面是使用Android Device Monitor或 command line截图的另一种方式
发布于 2014-04-16 03:28:15
如果您使用的是Android Studio或Eclipse,只需单击Android DDMS中的"Screen Capture“按钮即可:
发布于 2014-06-20 05:47:40
您可以使用adb从命令行获取截图:
adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > screen.png
这篇文章有详细的内容:http://blog.shvetsov.com/2013/02/grab-android-screenshot-to-computer-via.html
为了让我的生活更轻松,我在.bash_profile中做了一个别名:
alias screenshot="adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > ~/Downloads/android_screenshot.png"
现在,我可以在终端中输入screenshot
,并在我的下载目录中获得当前正在运行的模拟器的屏幕截图。
https://stackoverflow.com/questions/21771416
复制相似问题