检测截图采取? [英] Detection of screenshot taken?

查看:155
本文介绍了检测截图采取?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么办法,我可以在我的服务检测,如果用户把他的Andr​​oid设备的屏幕截图?

Is there any way i can detect in my service when user takes screenshot of his android device?

其基本思路是,只要用户把他的设备的屏幕截图弹出框将显示要求用户上传图片到Facebook,Twitter等。

The basic idea is whenever user takes screenshot of his device a popup will be displayed asking user to upload image to facebook, twitter etc.

推荐答案

这是未经测试,但你可能要尝试FileObserver类。

This is untested, but you may want to try the FileObserver class.

这点在截图文件夹并等待创建事件。

Point it at the screenshots folder and wait for a CREATE event.

https://developer.android.com/reference/android/os/ FileObserver.html

这篇关于检测截图采取?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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