How to disconnect a screenshot from the Android application?

How to disable a screenshot when my application is running on an Android device? Is there a way to prevent screening?

+8
android
source share
3 answers

Use Flag Secure as the flag of the layout parameter.

+8
source share

In the onCreate() method add a flag

 getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE,WindowManager.LayoutParams.FLAG_SECURE); 

to setContentView();

0
source share

Actually simple, had the same problem when playing games. Go to SETTINGS and look under DEVICES or ADDITIONAL FEATURES. From there you should see SMART CAPTURE and PALM SWIPE CAPTURE. Disconnect them ... the problem is resolved.

-3
source share

All Articles