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).
But now, my problem is the next:
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....
My question is, its possible maintain my application on memory while the session is active?
I think, store the session cookies in SharedPreferences is not a good idea because I want an independant session context implementation from android.
Thanks.