title: Need to hide content of program from Android "Overview Screen"
body: <p>I'm working on an Android app for a security-conscious employer. He's concerned about the screen snapshot that appears on the <a href="http://developer.android.com/guide/components/recents.html#attr-doclaunch" rel="noreferrer">Overview Screen</a> (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.</p>
  
  <p>Things I've tried:</p>
  
  <ul>
  <li>Inflate the splash screen's View in the <code>onPause</code> function. (No effect, even with <code>bringToFront</code> and <code>setVisibility(View.VISIBLE)</code>.)</li>
  <li>Inflate the splash screen's View in <code>onCreate</code> and use <code>bringToFront</code> in <code>onPause</code>. (Again, no effect.)</li>
  <li>Calling <code>setVisible(false)</code> in <code>onPause</code>. (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.)</li>
  <li>Calling <code>setVisibility(View.INVISIBLE)</code> on the topmost item of the View in <code>onPause</code>. (Seems like it will work, but the snapshot is apparently taken before it takes effect.)</li>
  </ul>
  
  <p>I'm a moderately accomplished Android developer, but I can't help but feel that there's a simple solution that I'm missing.</p>