移动设备编程抓屏 [英] Programmatic screencapture on mobile device
本文介绍了移动设备编程抓屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想实现某种形式的远程协助工具(如VNC)为Android。有没有以编程方式捕获屏幕设备上的可能性?
I would like to implement some sort of remote assistance tool (like vnc) for Android. Is there the possibility to capture a screen programmatically on the device?
推荐答案
类似的东西可能会为你工作:
Something like that might work for you:
View v = view.getRootView();
v.setDrawingCacheEnabled(true);
Bitmap b = v.getDrawingCache();
这篇关于移动设备编程抓屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文