How long does my subclass of Android's 'Application' class stick around for?
<p>In my application, I use a subclass of the Application object to store some references to complex objects I need to access from all of my activities.  When my app starts, the startup activity checks one of these references, in this case a Location, and if it is null, it starts the LocationListeners which populate the reference for further use.</p>

<p>If I back out of the app to the launcher screen, and re-launch it, the Application object still has the reference from the previous use a few moments prior.  This is fine, and is what I'd expect, but I'm curious how long the Application object is kept around once I've back'ed out of my application?  (onDestroy() has been called on all activities, nothing in the stack.)</p>

<p>When is it finally killed?  I know it does finally get killed as when I've not used the app in a while, it will search for location on startup (indicating the aforementioned null reference.)</p>

<p>(Also, is storing refs there like that a good idea?)</p>

<p>Thanks in advance gang!  :-)</p>
