我正在使用 ACRA 进行错误报告,一切似乎都很好。
我也想发送处理异常的报告,所以我正在使用
ACRA.getErrorReporter().handleException(e);
但是 不要希望 Toast 出现在 处理的异常 .但想干杯 未处理 异常(exception)!那么有没有办法指定这个条件?
编辑
@ReportsCrashes(
httpMethod = HttpSender.Method.POST,
reportType= HttpSender.Type.JSON,
formUri = MFRestConstants.CREATE_ACRA_REPORT,
mode = ReportingInteractionMode.TOAST,
resToastText = R.string.msg_toast_text,
additionalSharedPreferences={"MutterflyAppPref"}
)
最佳答案
有一种方法叫做 handleSilentException .
用法:ACRA.getErrorReporter().handleSilentException(e);
关于android - 防止 Toast 处理异常 ACRA,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37066930/