Hi all,

in my application I would like to catch all exceptions globally - it
should not matter, where those exceptions occur. Some runtime
exceptions are practically impossible to catch (OutOfMemoryError for
instance), but I want to show an informative dialog and resume
execution at some well-defined point (main menu activity or
something).

Using Thread.setDefaultUncaughtExceptionHandler() does this for
background threads, but it is of no help in the UI thread (or adjacent
handlers). If an exception occurs in the UI thread, the UI will be
jammed - not reacting to any key or touch events anymore. Of course,
this seems natural since it did not catch that exception; but I wonder
if there is a way to recover the UI thread. So:

 - Can I recover / restart the UI thread after an uncaught exception
(from another thread) ?
 - Is there another way to catch uncaught exceptions globally ?
 - Are there viable alternatives to handle this problem ?


Thx in advance
--~--~---------~--~----~------------~-------~--~----~
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