简体   繁体   中英

How to prevent Screen Capture in Android without using Secure Flag?

I am working on 1 application for Video chatting where I need to implement the following functionalities.

  1. During video chat if anyone tries to capture a screenshot of the screen then he can able to take a screenshot but at that time I need to show a warning popup message and report to the admin. But if I use "Secure Flag" then it will prevent taking screenshots but I can't able to show a warning popup message and report to a user.

  2. Similar way if anyone tries to capture screen recording then can't able to record and we can show warning popup.

By using "Secure Flag" we can prevent taking screenshots and screen recording but we can't get any event and due to that we can't show warning popup messages.

Neither of those are possible, sorry. Your app is not informed about apps using the media projection APIs, which includes any device-supplied screenshot/screencast tools.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM