^

Disable Screenshots/Capturing

Article 19 in Android-Java

<< Back
2020-08-15 03:44:12 from bugfish
Disable Screenshots/Capturing
Android-Java / Hints
Last Review on: 2022-08-07 01:57:31 | Hits: 587

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.

Comments

Currently 1 Upvotes!

captcha image
System - 2022-08-17 03:19:16
Thanks for visiting my page and have a nice day!
Staff may be in trouble!
Theme
Switch: NONE | Arrive: NONE
This Website is using Session Cookies for Site Functionality and AWStats.