Screen capture detection?

Is there a way to detect in my service when a user takes a screenshot of their Android device?

The main idea is that whenever a user takes a screenshot of his device, a pop-up window will appear asking you to upload the image to facebook, twitter, etc.

+3
java android screenshot
source share
1 answer

This is not tested, but you can try the FileObserver class.

Point it to the screenshots folder and wait for the CREATE event.

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

+4
source share

All Articles