Currently i am using FLAG_SECURE method to disable the screenshot functionality but users having Android P are able to take screenshots. How to restrict that?
This is not working for Android P: getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE,WindowManager.LayoutParams.FLAG_SECURE);
Thanks in Advance.