title: How to programmatically detect if any screen recording process/app is running in Android?
body: <p>I don't want users to take screenshot or record screen of my app. I have added secure flag to the window. This prevents user from taking screenshots and recording screen.</p>
  
  <p>If the screen recording is on, my app prevents the content from being recorded but the audio gets recorded.</p>
  
  <p>On some rooted devices, the secure flags may not work as expected.
  So I just want to detect if any screen recording app/process is running in background so that I can hide sensitive data and prevent it from being recorded.</p>
  
  <p>Is there any way I can detect if the screen recording is on?</p>