Sentry is an open source exception logger - getsentry.com
This is a Sentry client for Android application forked from joshdholtz/Sentry-Android with full stack trace logging from sounddrop/Sentry-Android and I added some stuff over it
- Use OkHttp instead of plain connection
- Send full exception stack trace
- Send device info
My fork is developed as part of KUSmartBus and funded by Department of Civil Engineering, Faculty of Engineering, Kasetsart University.
Note that I didn't test this with Maven or Gradle, only Eclipse.
- Right click on package explorer in Eclipse and Import>Existing Android Code into Workspace
- Right click this project > Java Build Path > Libraries and add the JAR of OkHttp (tested with version 2.0.0) and Okio, the dependency of OkHttp
Put this in your root activity.
PackageInfo pInfo = getPackageManager().getPackageInfo(getPackageName(), 0);
HashMap<String, String> tags = new HashMap<String, String>();
tags.put("version", pInfo.versionName);
tags.put("debug", BuildConfig.DEBUG ? "true" : "false");
Sentry.init(this, "https://app.getsentry.com", "dsn", tags);
Don't forget to change sentry server and DSN to your own. Sentry will automatically capture app crashes and report them on next start.
MIT License