Hide screen in 'Recent Apps List', but allow screenshots

前端 未结 4 1103
伪装坚强ぢ
伪装坚强ぢ 2020-12-28 17:15

I mainly want to blank the screen in the recent apps list due to sensitive data being shown. For this, the solution is to use:

getWindow().addFlags(WindowMan         


        
4条回答
  •  长发绾君心
    2020-12-28 17:43

    If your Activity is showing sensitive data, for the security reason is better to don't allow user to make screenshots. If you are worry even about recent app screen, why you are not worry about screenshots on the same time? I think, that Android OS SecureFlag is designed to protect your data, and screenshots ability, just negates it's purpose.
    If you anyway, want this ability, you can try to move all your sensitive data to separate activity with this flag. In that case, you will protect your sensitive data, and in other app's activities will have ability to make screenshots.

提交回复
热议问题