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 (ie, 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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.