Some of the analytics packages (for instance, Flurry) will listen for Exceptions and log them w/o actually catching them. How are they doing this?
Asked
Active
Viewed 475 times
2 Answers
3
See Thread.setDefaultUncaughtExceptionHandler
and the respective Thread.UncaughtExceptionHandler
which receives the Thread
and Throwable
involved.

Christopher Orr
- 110,418
- 27
- 198
- 193
-
1Thanks... I ended up finding another question which had a pretty good answer thanks to your help. http://stackoverflow.com/questions/601503/how-do-i-obtain-crash-data-from-my-android-application/755151#755151 – Jeremy Logan Jan 08 '10 at 20:41
1
Probably via Thread.setDefaultUncaughtExceptionHandler()
.

CommonsWare
- 986,068
- 189
- 2,389
- 2,491
-
What if you want to globally catch exceptions: Is this possible: See my post: http://stackoverflow.com/questions/5740843/android-global-error-handling-and-reporting-activity – Androider Apr 21 '11 at 09:03