0

ここで説明されている Google アナリティクス (Android SDK) の例外レポート機能をプロジェクトに実装しました。

https://developers.google.com/analytics/devguides/collection/android/v2/exceptions?hl=fr

ページの下部で説明されているように ExceptionParser を使用したいのですが、その意味がわかりません:

// Where myParser represents your implementation of ExceptionParser.
ExceptionParser parser = new myParser(context);

myParser クラスには何を書けばよいのでしょうか?? このクラスが Google アナリティクス SDK に含まれていないのはなぜですか?

ありがとう !

4

2 に答える 2

1

ありがとう !

Andy Resの回答を使用しました。私の完全な getDescription メソッドは次のとおりです。

public String getDescription(String threadName, Throwable t) {
        // TODO Auto-generated method stub

        String description = "threadName = "
        + threadName
        + "\ngetMessage()= " + t.getMessage()
        + "\ngetLocalizedMessage()=" + t.getLocalizedMessage()
        + "\ngetCause()=" + t.getCause()
        + "\ngetStackTrace()=" + t.getStackTrace();

        return description;

    }
于 2013-06-20T14:54:42.233 に答える