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(WindowManager.LayoutParams.FLAG_SECURE);
but this also disallows screenshots, which is a problem.
Is there a way to show a blank screen (or a predefined image) in the recent apps list, while still allowing screenshots?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…