logonsa.blogg.se

Screen shot capture
Screen shot capture










screen shot capture

I saw all of the answers which are appropriate only for a single activity but there is my solution which will block screenshot for all of the activities without adding any code to the activity. getWindow().setFlags(LayoutParams.FLAG_SECURE, LayoutParams.FLAG_SECURE) Which both offer little to no chance of you either blocking it or receiving notification of it.įor example: there exists software to mirror your phone screen to your computer via the SDK and so screen capture software could be used there, undiscoverable by your app. It may be possible to capture the screen of another app on a rooted device or through using the SDK, Window flag: treat the content of the window as secure, preventing it from appearing in screenshots or from being viewed on non-secure displays.Ībove solution will surely prevent applications from capturing Video of your appĢ) There are alternative means of capturing screen content. But if you only want to block it for normal android devices, the SECURE FLAG is substantial.ġ) The secure flag does block both normal screenshot and video capture.Īlso documentation at this link says that I'm going to say that it is not possible to completely prevent screen/video capture of any android app through supported means.












Screen shot capture