I have an Android game created with help of libGDX. I want to disable the ability to take screenshots.
For regular android activities you can use getWindow().setFlags(LayoutParams.FLAG_SECURE, LayoutParams.FLAG_SECURE);
method. It works fine.
But it doesn't work with activities extended from com.badlogic.gdx.backends.android.AndroidApplication
. I'm still able to take screenshots.
Any ideas?