My android Application instance(Application class) is destroyed after I stay my application in background after 2-3 minutes
<p>I use <code>Application</code> class to store my android application global parameters.But when I go to other app and stay my app to background for about several minutes, my app can not run again. Because I get parameters from the <code>Application</code> class but now it becomes empty.</p>

<p>My question is why it like that and how to solve this problem?
 And I also saw a thread follows:</p>

<p><a href="http://stackoverflow.com/questions/9091292/returning-after-a-period-of-inactivity-in-my-android-application-causes-destroy">Returning after a period of inactivity in my Android Application causes destroy set Values</a> </p>

<p>The answer is using <code>onSaveInstanceState()</code>. But how can I save all my application parameters in it? 
 Thank you</p>

<p>.</p>
