【发布时间】:2013-08-09 11:12:10
【问题描述】:
ACRA 允许您在应用程序被销毁时发送报告。如何在必要的时候使用它来发送报告?例如,在块中:
try {
// some code
} catch (Exception e) {
// send custom report with exception stack trace
}
【问题讨论】:
ACRA 允许您在应用程序被销毁时发送报告。如何在必要的时候使用它来发送报告?例如,在块中:
try {
// some code
} catch (Exception e) {
// send custom report with exception stack trace
}
【问题讨论】:
初始化 ACRA:
ACRA.init(this);
ErrorReporter.getInstance().addReportSender(new CustomReportSender());
尝试使用以下内容:
try {
// some code
} catch (Exception e) {
ErrorReporter.getInstance().handleException(e);
}
【讨论】:
ErrorReporter.getInstance().addReportSender(new CustomReportSender()); 的情况下工作