In recent years, I have been programming on Android, and I am wondering: how to determine when a user takes a screenshot? I want that when the user takes a screenshot, we move on to the next step. I tried the method of intercepting an event, but there is a problem: when the device falls asleep, for example, an event interception occurs. Do you have a solution to capture only screenshot events or ignore another event?
Thanks for the help!
android events screenshot detect
Nachding
source share