Android的异常处理 [英] Android Exception Handling

查看:115
本文介绍了Android的异常处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在转换出一套应用程序使用.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:

  • <一个href="http://stackoverflow.com/questions/2654168/global-uncaught-exception-handler-email-log-to-me">Global未捕获的异常处理程序 - >邮件日志,我
  • <一个href="http://stackoverflow.com/questions/2314139/is-it-possible-to-replace-the-default-force-close-dialog-in-android">is可以替换默认的强制关闭,在Android的对话框?
  • Global uncaught exception handler -> email log to me?
  • is it possible to replace the default "Force Close" dialog in Android?

这篇关于Android的异常处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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