In this post I’m going to explain to you how you can prevent your app content from recording or from screenshot some time it’s very important that you don’t allow your important content from copy or from recording. Using below code you can prevent your content from a screenshot or from recording.

Step 1. Create a new project in Android Studio and open your activity in which you want to prevent from screen recording.

Complete Activity Code

That’s all you can check below video in which you can see how it’s working

Hope this code help you.