user246114
user246114

Reputation: 51631

Global uncaught exception handler -> email log to me?

Is there any way to catch crashes in my own android app? Something like a global uncaught exception handler? Just wondering if I could install something like that, then if an uncaught exception is thrown, I could pop up a dialog for the user and ask if they want to mail a dump of the exception to me.

Thanks

Upvotes: 17

Views: 8149

Answers (5)

Richard Le Mesurier
Richard Le Mesurier

Reputation: 29722

FWIW, we've been using Crittercism's free plan with success. They also offer some premium features, like handling the exception so the app doesn't crash.

In the free version, the user still sees the crash, but at least I get the email and the stack trace.

We also use the iOS version (but I've heard from my colleagues that it is not quite as good).


Here are similar questions:

Upvotes: 0

deefactorial
deefactorial

Reputation: 323

DroidDrop is a dead project. Neat Idea though wish they open sourced it.

Upvotes: 0

Jon Romero
Jon Romero

Reputation: 4090

Bugsense.com also does this (for free)

Upvotes: 4

Nikola Smiljanić
Nikola Smiljanić

Reputation: 26873

Flurry does this, plus a lot of other useful things.

Upvotes: 3

CommonsWare
CommonsWare

Reputation: 1006869

Is there any way to catch crashes in my own android app? Something like a global uncaught exception handler?

See Thread.setDefaultUncaughtExceptionHandler().

Just wondering if I could install something like that, then if an uncaught exception is thrown, I could pop up a dialog for the user and ask if they want to mail a dump of the exception to me.

You can also use Flurry, DroidDrop, or any of the other implementations of this already available.

Upvotes: 16

Related Questions