public static void initExceptionHandler(Context context) {

        Log.d("AppRate", "Init AppRate ExceptionHandler");

        Thread.UncaughtExceptionHandler currentHandler = Thread.getDefaultUncaughtExceptionHandler();

        // Don't register again if already registered.
        if (!(currentHandler instanceof ExceptionHandler)) {

            // Register default exceptions handler.
            Thread.setDefaultUncaughtExceptionHandler(new ExceptionHandler(currentHandler, context));
        }
    }
public static void initExceptionHandler ( Context context ) { Log . d ( "AppRate" , "Init AppRate ExceptionHandler" ) ; Thread . UncaughtExceptionHandler currentHandler = Thread . getDefaultUncaughtExceptionHandler ( ) ; if ( ! ( currentHandler instanceof ExceptionHandler ) ) { Thread . setDefaultUncaughtExceptionHandler ( new ExceptionHandler ( currentHandler , context ) ) ; } }
Initialize the {@link ExceptionHandler}.