I am using ACRA (Application Crash Report for Android) to send data when unhandled exceptions occur.
Methods like openFileOutput() requires me to try and catch iOExceptions. Since the exception is in a try catch block, ARCA is not triggered. However I would still like to receive and see the stacktrace. Are there any ways to achieve this?
If handling the IOException, etc. doesn't really make sense (i.e., there is really nothing you can do about it), wrap it in a RuntimeException and throw it. ACRA will catch and report this. If you don't want to crash the app, catch and handle it, then use handleException() to send a report manually:
ACRA.getErrorReporter().handleException(caughtException);
More details here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With