^

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-10-25 13:05:38 | Hits: 339

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.
Currently 1 Upvotes!
captcha image
System - 2021-01-02 18:07:27
We appreciate comments on our site!

Theme
6/6
This Website is using Session Cookies for Site Functionality and AWStats.