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?
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?
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:
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.