^

Disable Screenshots/Capturing

Article 19 in Android-Java

2020-08-15 03:44:12 from bugfish
Disable Screenshots/Capturing
Android-Java / Hints
Last Review on: 2021-03-03 15:07:59 | Hits: 210

In Constructor

super.onCreate(savedInstanceState);

// Disable Screenshots
getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE);
setContentView(R.layout.activity_main);

I do not guarantee the reliability of the information given here, the code described on this page is executed at your own risk and in the event of damage or other unforeseeable consequences I am in no way responsible or liable.
Comment Section
Currently 1 Upvotes!
captcha image

System - 2021-01-02 18:07:27
We appreciate comments on our site!

This Website is using Session Cookies for Site Functionality and AWStats.
Radio