I am implementing a video streaming App and want to secure my content I have used
getWindow().setFlags(LayoutParams.FLAG_SECURE, LayoutParams.FLAG_SECURE);
It stopped taking screenshot of app, but if recording app start before my app user can hear content
And some apps able to record video.
I thought to prevent other apps that has 'SYSTEM_ALERT_WINDOW' permission from capturing my content, so i want to know how to do that?
Note: MinSdk is 21