截图功能

在github上看到一个可以实现截图功能的demo,,,

使用方法:public void getScreen() {
String filename = getApplication().getFilesDir().toString() + "test.png";
ScreentShotUtil.getInstance().takeScreenshot(getApplicationContext(),
filename);
}

把ScreentShotUtil.class和ShellUtils.class复制到src/包名下即可;

链接:http://download.csdn.net/download/weixin_38752761/10049808

需要在哪里实现截图就在哪里调用getScreen()。

猜你喜欢

转载自blog.csdn.net/weixin_38752761/article/details/78421897