全球未捕获的异常处理程序 - >电子邮件日志给我吗? [英] Global uncaught exception handler -> email log to me?

查看:156
本文介绍了全球未捕获的异常处理程序 - >电子邮件日志给我吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法赶上崩溃在我自己的Andr​​oid应用程序吗?像一个全球性的未捕获的异常处理程序?只是想知道如果我能安装类似的东西,那么如果未捕获的异常被抛出,我会弹出一个对话框,用户并询问他们是否要邮寄的例外转储到我。

感谢

解决方案
  

有没有办法赶上崩溃的   我自己的Andr​​oid应用程序吗?有点像   全球未捕获的异常处理程序?

请参阅 Thread.setDefaultUncaughtExceptionHandler()

  

只是想知道如果我能安装   类似的东西,那么如果   未捕获的异常被抛出,我可以   弹出一个对话框,让用户和要求   如果他们想邮寄的转储   例外我。

您也可以使用乱舞,DroidDrop,或任何这种已有的其他实现的。

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.

这篇关于全球未捕获的异常处理程序 - >电子邮件日志给我吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆