7. It ain’t nuthin’ but a code thang
Thread.setDefaultUncaughtExceptionHandler(new ExceptionHandler());
8. public class ExceptionHandler implements Thread.UncaughtExceptionHandler {
@Override
public void uncaughtException(Thread thread, Throwable ex) {
// Do things with the thread and the exception here
Troidolytics.defaultHandler.uncaughtException(thread, ex);
}
}
20. Log EVERYTHING
caught exceptions,
custom messages,
variable states
} catch (Exception e) {
Crashlytics.logException(e);
ACRA.getErrorReporter().handleException(e);
}
And if you are special and want
custom logging?