質問

ACRA allows you to send reports when an application is destroyed. How to use it to send a report during the necessary moment? For example, in block:

    try {
        // some code
    } catch (Exception e) {
        // send custom report with exception stack trace
    }
役に立ちましたか?

解決

Initialize ACRA:

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

Try to use following:

    try {
        // some code
    } catch (Exception e) {
        ErrorReporter.getInstance().handleException(e);
    }
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top