title: Prevent remote screen recording of android app programmatically
body: <p>I want to prevent remote screen recording of my app using third party apps like Anydesk, Quicksuppport, Teamviewer etc.</p>
  
  <p>I have used below flag for activity :</p>
  
  <p>getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE);</p>
  
  <p>but the above flag doesn't work for all devices.</p>
  
  <p>Any other work around for preventing remote screen recording?</p>