Description
when you design an app you will add some important and premium content in your app.Now a days the people take screenshots of premium content in your app.There are some apps like hotstar,amazon prime,jio TV,Voot,MX player which contains video content which can be recorded.So In this project we make the screenshot as well as screenrecorder disable while they use our app.So there will be no data leak.
In Android studio we have a code which make this happen by disabling the screenrecorder.
Open the IDE and paste this code in the onCreate function in Mainactivity.java.
getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE,WindowManager.LayoutParams.FLAG_SECURE);
This code will make your app Screen Secure by using Flag_Secure method.
Before Applying the code,I took the Screenshot of the App.
After Applying the code,I tried to record the screen....
Thank You
Comments
Post a Comment