I'm working on an Android app for a security-conscious employer. He's concerned about the screen snapshot that appears on the Overview Screen (a.k.a. the recent-tasks list) leaking sensitive information, and wants me to put up the program's splash screen before the system takes that picture. Unfortunately I haven't found any way to do so.
Things I've tried:
- Inflate the splash screen's View in the
onPause
function. (No effect, even withbringToFront
andsetVisibility(View.VISIBLE)
.) - Inflate the splash screen's View in
onCreate
and usebringToFront
inonPause
. (Again, no effect.) - Calling
setVisible(false)
inonPause
. (Seemed to almost work, in that the screen blinks to black for an instant when switching away from the program, but it's apparently made visible by the system again before the snapshot.) - Calling
setVisibility(View.INVISIBLE)
on the topmost item of the View inonPause
. (Seems like it will work, but the snapshot is apparently taken before it takes effect.)
I'm a moderately accomplished Android developer, but I can't help but feel that there's a simple solution that I'm missing.