Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

handle unhandled exceptions in Android

In Windows phone 7, developers are provided an Application_UnhandledException event that provides an exception object containing information and stack trace of any unhandled exception that occurs. There is an opportunity to store this object in local storage. On next startup we can check for such an object and email it to the developer. Obviously this is valuable in diagnosing production crashes.

Does such a thing exist in Android? Thanks, Gary

like image 958
Dean Blakely Avatar asked May 31 '26 07:05

Dean Blakely


1 Answers

java.lang.Thread.setDefaultUncaughtExceptionHandler(UncaughtExceptionHandler handler)

Is this what you want?

like image 132
CombinatorX Avatar answered Jun 01 '26 21:06

CombinatorX



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!