views:

95

answers:

2

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

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

+2  A: 

You need to use:

Thread.setDefaultUncaughtExceptionHandler(handler)

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

EDIT:

Check this questions, are basically the same:

Macarse
+1  A: 

I highly recommend using the library android-remote-stacktrace. It uses the methods Macarse mentions but wraps it in a useful POST to your server, which you can use to put into a database or send an email.

Daniel Lew