com.google.android.gms.analytics.StandardExceptionParser Java Examples
The following examples show how to use
com.google.android.gms.analytics.StandardExceptionParser.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ShadowsocksApplication.java From ShadowsocksRR with Apache License 2.0 | 5 votes |
/** * send event */ public void track(Throwable t) { Map<String, String> builders = new HitBuilders.ExceptionBuilder() .setDescription(new StandardExceptionParser(this, null).getDescription(Thread.currentThread().getName(), t)) .setFatal(false) .build(); tracker.send(builders); }
Example #2
Source File: ShadowsocksApplication.java From Maying with Apache License 2.0 | 5 votes |
/** * send event */ public void track(Throwable t) { Map<String, String> builders = new HitBuilders.ExceptionBuilder() .setDescription(new StandardExceptionParser(this, null).getDescription(Thread.currentThread().getName(), t)) .setFatal(false) .build(); tracker.send(builders); }
Example #3
Source File: Common.java From Rey-MusicPlayer with Apache License 2.0 | 5 votes |
public void trackException(Exception e) { if (e != null) { Tracker t = getGoogleAnalyticsTracker(); t.send(new HitBuilders.ExceptionBuilder() .setDescription(new StandardExceptionParser(this, null).getDescription(Thread.currentThread().getName(), e)) .setFatal(false) .build() ); } }
Example #4
Source File: GoogleAnalyticsProvider.java From AndroidAnalytics with Apache License 2.0 | 5 votes |
@Override public void exception(Exception e) { if (e != null) { tracker.send(new HitBuilders.ExceptionBuilder() .setDescription( new StandardExceptionParser(applicationContext, null).getDescription(Thread.currentThread().getName(), e)) .setFatal(false) .build() ); } }
Example #5
Source File: MainApplication.java From android_gisapp with GNU General Public License v3.0 | 5 votes |
private void setExceptionHandler() { ExceptionReporter handler = new ExceptionReporter(getTracker(), Thread.getDefaultUncaughtExceptionHandler(), this); StandardExceptionParser exceptionParser = new StandardExceptionParser(getApplicationContext(), null) { @Override public String getDescription(String threadName, Throwable t) { return "{" + threadName + "} " + Log.getStackTraceString(t); } }; handler.setExceptionParser(exceptionParser); Thread.setDefaultUncaughtExceptionHandler(handler); }
Example #6
Source File: AnalyticsTracker.java From AJShA with GNU General Public License v3.0 | 5 votes |
@Override public void trackException(String s, Exception e, boolean fatal) { final String description = new StandardExceptionParser(ctx, null) .getDescription(Thread.currentThread().getName(), e); final Map<String, String> exceptionMap = new HitBuilders.ExceptionBuilder() .setDescription(s + " " + description) .setFatal(fatal).build(); tracker.send(exceptionMap); }