title: How to prevent android destroy my application?
body: <p>I'm writing an application that establishes a session with a website (mantaining cookies in requests). The session context (an object that controls all the requests) is actually stored in a member of the application class (I need all activities and services can access to this object to retrieve data).</p>
  
  <p>But now, my problem is the next:</p>
  
  <p>When I exit from the aplication (minimizing or pressing the back button) my application dies, I mean, the process exits and the application is destroyed... so, when starts the application again, need to login... again....</p>
  
  <p>My question is, its possible maintain my application on memory while the session is active?</p>
  
  <p>I think, store the session cookies in SharedPreferences is not a good idea because I want an independant session context implementation from android.</p>
  
  <p>Thanks.</p>