Detect only screenshot with FileObserver Android

前端 未结 4 1460
失恋的感觉
失恋的感觉 2020-12-13 07:25

I am currently developing an application for Android and wanted to know how to detect a screenshot. I tried with FileObserver but the problem is that all events are detected

4条回答
  •  暖寄归人
    2020-12-13 08:12

    You can create FileObserver that only monitors screenshot directory plus only trigger events for file or directory creation. For more information click here.

提交回复
热议问题