开发者

Global uncaught exception handler -> email log to me?

开发者 https://www.devze.com 2022-12-27 08:03 出处:网络
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 e

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


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.


Bugsense.com also does this (for free)


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


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


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:

  • Is it possible to create some sort of global exception handler in Android?
  • Ideal way to set global uncaught exception Handler in Android
0

精彩评论

暂无评论...
验证码 换一张
取 消