How to block user to perform a "screenshot"/"printscreen"/""Take picture of application window" in corona.

I would like to block the user to take a screenshot/printscreen/picture of my application results using corona sdk. In android sdk they uses a property named FLAG_SECURE. I am wonder if there is a similar option in corona.

Thanks in advance for support.

There is currently no means of doing this.

Corona does not support or use the FLAG_SECURE property.

I’m not sure what the buttons are for android devices to take screenshot but you might be able to detect when they are both down and if so put a black rectangle over the whole screen. It might not be fast enough and Corona might not have access to the correct buttons but it’s worth a try.

I thought in that approach but depending of the android device the combination of buttons changes. For example in some HTC screenshot is taken slicing finger with long press from left to right. In my samsung galaxy is the combination of home with startup button.

Also, I could not find a way to detect the startup button in code.

There is currently no means of doing this.

Corona does not support or use the FLAG_SECURE property.

I’m not sure what the buttons are for android devices to take screenshot but you might be able to detect when they are both down and if so put a black rectangle over the whole screen. It might not be fast enough and Corona might not have access to the correct buttons but it’s worth a try.

I thought in that approach but depending of the android device the combination of buttons changes. For example in some HTC screenshot is taken slicing finger with long press from left to right. In my samsung galaxy is the combination of home with startup button.

Also, I could not find a way to detect the startup button in code.