捕捉屏幕的android [英] Capture android screen

查看:220
本文介绍了捕捉屏幕的android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何编程在Android手机上进行屏幕捕获?

How can I programmatically perform a screen capture on an Android phone?

推荐答案

您无法从Android应用程序做到这一点,除了一个根深蒂固的手机上,因为你没有权限访问帧缓冲设备。

You cannot do this from an android app except on a rooted phone, as you don't have permission to access the framebuffer device.

您可以做但是在它从你的开发机器的DDMS窗口亚洲开发银行,作为有权限framebuffer的图形组中ADB运行。

You can however do it over adb from the DDMS window of your development machine, as adb runs in the graphics group which has permission to the framebuffer.

如果你想要做一个扎根设备上的本地code类似的东西,看来源亚行守护进程。

If you want to do something similar in native code on a rooted device, look at the sources to the adb daemon.

编辑:看来这可能会改变,并有可能在近期发布的Andr​​oid非root能力,但我不知道的细节

It appears this may be changing and there may be non-root capability in more recent android releases, but I'm not sure of the details.

这篇关于捕捉屏幕的android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆