I have an Android application with a video player with DRM. When I try to take a screenshot after the video player in my app is opened I see the message: "Can't take screenshot due to security policy". It is okay, but I want to customize this message or, in the best way, have a callback when the user tries to make a screenshot (for example, show him
an alert dialog with my message).
How can I make it?