简体   繁体   English

捕获模拟器屏幕(Android):

[英]capturing the emulator screen(android):

我的应用程序应该有一个按钮,单击该按钮后会说“开始/停止”,它应该捕获模拟器屏幕,包括鼠标的移动以及屏幕上的内容,停止时它将停止捕获屏幕...

You can get screen captures from an Android emulator using the ddms tool that comes with the Android SDK . 您可以使用Android SDK随附ddms工具从Android模拟器获取屏幕截图。

点击查看原图

点击查看原图

I am not aware of any standard Android APIs for screen capture. 我不知道用于屏幕捕获的任何标准Android API。 All of the screen capture applications I have seen on the Android Market require a rooted device, so I'm fairly sure there's no easy way to do this within your application. 我在Android Market上看到的所有屏幕捕获应用程序都需要有根设备,因此,我敢肯定,在您的应用程序中没有简单的方法可以做到这一点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM