I can’t make screenshot protection on android studio
I added FLAG_SECURE to my project to protect against screenshots, but it doesn’t work, I tried it on a simple project, but it didn’t work there either. What to do?
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE,
WindowManager.LayoutParams.FLAG_SECURE);
setContentView(R.layout.activity_main);