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
You can create FileObserver that only monitors screenshot directory plus only trigger events for file or directory creation.
For more information click here.