i am using ACRA for error reporting and everything seems to be fine. i want to send report of handled exceptions as well so i am using
ACRA.getErrorReporter().handleException(e);
but don't want the Toast to appear on the handled exceptions . but want toast on unhandled exceptions! so is there any way to specify this condition?
EDIT
@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"}
)
There is a method called handleSilentException .
Usage: ACRA.getErrorReporter().handleSilentException(e);
Although I haven't used ACRA before but it is obvious that your mode is set to
mode = ReportingInteractionMode.TOAST
This should display a Toast shouldn't it?
You should simply remove that line because you don't want to notify the user I guess !!
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.