检测截图采取?截图

由网友(别爱我 如果只是寂寞 )分享简介:有什么办法,我可以在我的服务检测,如果用户把他的Andr​​oid设备的屏幕截图?Is there any way i can detect in my service when user takes screenshot of his android device?其基本思路是,只要用户把他的设备的屏幕截图弹出框...

有什么办法,我可以在我的服务检测,如果用户把他的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

阅读全文

相关推荐

最新文章