Skip to content

Instantly share code, notes, and snippets.

@yishai-glide
Created January 31, 2016 14:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yishai-glide/a39bcec7486958104e2d to your computer and use it in GitHub Desktop.
Save yishai-glide/a39bcec7486958104e2d to your computer and use it in GitHub Desktop.
@override
public void onCreate() {
initCrashHandeling();
/// other init code
AppRight.start(this, GRYPHONET_APP_ID, LifeCyclePhase.DEVELOPMENT ,true);
}
private void initCrashHandeling(){
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
@Override
public void uncaughtException(Thread thread, Throwable ex) {
AppRight.reportCrash(ex, thread);
// other code
};);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment