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

前端 未结 4 1110
伪装坚强ぢ
伪装坚强ぢ 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条回答
  •  猫巷女王i
    2020-12-28 17:59

    I think what you need is:

    android:excludeFromRecents="true"
    

    put that in your android manifest inside your (activity you want to exclude from recents)

提交回复
热议问题