You don't need to do anything, the process will be killed but the database
exists in persistent storage so whatever you had last committed to it is
still there and will be there the next time you open and need it.

On Sun, Jul 29, 2012 at 8:24 AM, Jim Morris <jim.mor...@lecere.com> wrote:

> This seems to be the simplest of questions, but I have not been able
> to find a suitable answer on Google or this forum.
>
> I am surprised to find that Android apparently does not call
> onDestroy, onStop, or onPause after a fatal exception occurs (e. g. a
> null pointer fatal exception). I have put the following code into two
> activities that are around when a fatal exception occurs. None of this
> code gets executed in either activity when a fatal exception occurs in
> one of the activities.
>
> public void onStop() {  Log.i("JIM","CALL ONSTOP"); super.onStop();  }
>
> public void onDestroy() { Log.i("JIM","CALL ONDESTROY");
> super.onDestroy();  }
>
> public void onPause() { Log.i("JIM","CALL ONPAUSE");
> super.onPause();  }
>
> So this begs the question: What method is called that will allow me
> to, for example, close the database so the database does not get
> destroyed when a fatal exception occurs?
>
> --
> 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
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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

Reply via email to