You might want to rethink the question. What's the last chance your application has to save its state before being killed?
On Thu, Mar 4, 2010 at 3:17 AM, miguelo <[email protected]> wrote: > Hi, I have a problem when android decides to kill my process, because > when it is restored, it crashs because my Application object is > restored and has lost important info that was stored in it. > > I have readed in Activity Lifecycke chapter on API documentation that > "If an activity is paused or stopped, the system can drop the activity > from memory by either asking it to finish, or simply killing its > process. When it is displayed again to the user, it must be completely > restarted and restored to its previous state." > > Is there any way for my application to know if the system has killed > my process before and is trying to restore it right now? > > Thanks in advance and regards! > > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

