Android的异常处理异常、Android

由网友(自古表白多白表i)分享简介:我们正在转换出一套应用程序使用.NET编写的MonoTouch到Android。We are converting out suite of iPhone apps written in .NEt MonoTouch to Android.我们如何赶上,然后发布异常,以便它们通过Android Market的报道?...

我们正在转换出一套应用程序使用.NET编写的MonoTouch到Android。

We are converting out suite of iPhone apps written in .NEt MonoTouch to Android.

我们如何赶上,然后发布异常,以便它们通过Android Market的报道?

How do we catch, then publish exceptions so that they are reported via the Android Market?

推荐答案

您需要使用:

Thread.setDefaultUncaughtExceptionHandler(handler)

在那里,你可以捕捉一切,发送邮件,通知等。

There you can catch everything and send mails, notifications, etc.

编辑:

勾选此问题,基本上是相同的:

Check this questions, are basically the same:

Global未捕获的异常处理程序 - >邮件日志,我 is可以替换默认的强制关闭,在Android的对话框? Global uncaught exception handler -> email log to me? is it possible to replace the default "Force Close" dialog in Android?
阅读全文

相关推荐

最新文章