Where is backgrund app state saved to
<p>So when my application goes into background, is it's state saved to RAM or to disk? Because when it is reopen, loses some objects, that should stay there. So need to set this in such a way that i keep my current state. 
And when actually is some app closed? When no thread is active?</p>
