1

ACRA 允许您在应用程序被破坏时发送报告。如何在必要的时候使用它来发送报告?例如,在块中:

    try {
        // some code
    } catch (Exception e) {
        // send custom report with exception stack trace
    }
4

1 回答 1

3

初始化 ACRA:

ACRA.init(this);
ErrorReporter.getInstance().addReportSender(new CustomReportSender());

尝试使用以下内容:

    try {
        // some code
    } catch (Exception e) {
        ErrorReporter.getInstance().handleException(e);
    }
于 2013-08-09T12:16:02.333 回答