Created
January 31, 2016 14:46
-
-
Save yishai-glide/a39bcec7486958104e2d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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