I have used the following code in my android app, to prevent the user from taking screenshots, or screen recording:
if(android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.HONEYCOMB) {
window.setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE)
}
it shows the following toast message: "Unable to capture screen, DRM protected image."
how to change this toast message? i tried to search here in Stack Overflow answers but nothing helped, or if it's unchangeable, how to show another toast message with it when a screen record or capture is detected?