【发布时间】:2025-12-24 16:35:10
【问题描述】:
我知道有办法以编程方式截取屏幕截图。
1.通过ADB使用MonkeyRunner,使用USB线连接PC和Android设备。
http://developer.android.com/tools/help/MonkeyDevice.html#takeSnapshot
2. 只为你开发的APP从绘图缓存中获取
https://*.com/a/24280494/2080233
3. 从帧缓冲区获取,但不适用于许多应用程序。
http://www.pocketmagic.net/android-native-screen-capture-application-using-the-framebuffer/
4. root使用/system/bin/screencap,但需要写入存储。
https://*.com/a/15208592/2080233
我想知道是否有办法直接从内存中截取屏幕截图并且效果很好。
【问题讨论】:
标签: android image screenshot root