Android - Opening phone deletes app state

Posted by Tom G on Stack Overflow See other posts from Stack Overflow or by Tom G
Published on 2010-06-10T20:24:10Z Indexed on 2010/06/10 20:32 UTC
Read the original article Hit count: 167

Filed under:
|
|

Hey everyone,

I'm writing an android application that maintains a lot of "state" data...some of it I can save in the form of onSaveInstanceState but some of it is just to complex to save in memory.

My problem is that sliding the phone open destroys/recreates the app, and I lose all my application state in the process. The same thing happens with the "back" button, but I overloaded that function on my way. Is there any way to overload the phone opening to prevent it from happening?

Thanks in advance.

© Stack Overflow or respective owner

Related posts about java

Related posts about android