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

前端 未结 4 1105
伪装坚强ぢ
伪装坚强ぢ 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:48

    After doing some research I have found this to be impossible at this point.

    The onCreateThumbnail seems to be the function you're looking for. Unfortunately this function seems to be unimplemented or at least not working.

    As Ped7g pointed out: The onCreateThumbnail is "won't fix" since 2014.

    It's also flagged deprecated for removal in the Android onCreateThumbnail reference page

    This functionality will most likely never work.

提交回复
热议问题