How to disable screen recording in android java programatically like in a banking app
I tried the following code.
getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE);
When recording screen I got black screen,but this will not hide the spinner, AlertDialog etc.