private static void OnUnhandledException(object sender, UnhandledExceptionEventArgs args) { if (!CrittercismAndroid.isInitialized || args == null || args.ExceptionObject == null) { return; } Exception e = args.ExceptionObject as Exception; CrittercismAndroid.LogUnhandledException(e); }