Search code examples
androidgoogle-fabric

Fabric Crashlytics Android events sending


I'm using Fabric Crashlytics for Android and it's really a great engine, and notifies me whenever there's a crash (on both the dashboard and my emai), but what i want to know is that:

Can I send an event to the dashboard (or my email) when the app catches an exception (i.e can i send the exception.printStackTrace() whenever the app catches an exception)?


Solution

  • Yes, you can.

    https://docs.fabric.io/android/crashlytics/caught-exceptions.html

    try {
        ...
    } catch (Exception e) {
        Crashlytics.logException(e);
        // handle your exception here!
    }