Hi, thanks for your help. I have read about how to save and restore the status of an activity (onSavedInstanceState(), onRestoreInstanceState(), ...)
My problem is I'm extending the android.app.Application class, which is a "base class for those who need to maintain global application state" and I'm using it to maintain some global data (user logged in, DB helper, ...). These are the data I'm losing if I leave my application opened and after a few hours I return to it. I'm able to restore the specific data of the running activity but not these global data. I don't know if I'm using a bad practice (and in that case which is the recommended approach to store global application state), and if that's the correct place to do it, how can I save/restore those data when my process is killed/restarted. Thanks, Miguel On 8 mar, 17:22, TreKing <treking...@gmail.com> wrote: ... > > Did you readed about onSavedInstanceState and onRestoreInstanceState ? > ... -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en