Detecting android Idle
<p>I have a (somewhat) simple question about android.</p>

<p>I have some classes that contain some static data accessible via static methods.  I do this so I can access my data wherever i need to without needing to pass the data every which way.  </p>

<p>Anyway, when I run my app, then I 'close' it by hitting the home screen button, then come back after say 20 minutes, I receive some null pointer exceptions from that static data.  </p>

<p>Other than testing each data whenever OnFocus is called, is there any way to detect that we are now bringing the app back into focus?  Perhaps we can 'restart' the app when appropriate?</p>

<p>Thanks</p>
