예제 #1
0
  public void send(String tag, String message, Throwable ex, boolean isFatal) {
    Tracker tracker = App.getInstance().getDefaultTracker();

    tracker.send(
        new HitBuilders.ExceptionBuilder()
            .setDescription(getDescription(tag, message, ex))
            .setFatal(isFatal)
            .build());
  }
예제 #2
0
 public AnalyticsExceptionReporter getExceptionReporter() {
   return new AnalyticsExceptionReporter(
       App.getInstance().getDefaultTracker(),
       Thread.getDefaultUncaughtExceptionHandler(),
       App.getInstance().getApplicationContext());
 }