Search in sources :

Example 1 with ANRWatchDog

use of com.github.anrwatchdog.ANRWatchDog in project vialer-android by VoIPGRID.

the class VialerApplication method onCreate.

@Override
public void onCreate() {
    super.onCreate();
    sApplication = this;
    mActivityLifecycle = new ActivityLifecycleTracker();
    registerActivityLifecycleCallbacks(mActivityLifecycle);
    new ANRWatchDog().start();
}
Also used : ANRWatchDog(com.github.anrwatchdog.ANRWatchDog)

Example 2 with ANRWatchDog

use of com.github.anrwatchdog.ANRWatchDog in project krypton-android by kryptco.

the class CrashReporting method startANRReporting.

public static synchronized void startANRReporting() {
    if (anrWatchDog == null) {
        anrWatchDog = new ANRWatchDog().setIgnoreDebugger(true).setReportMainThreadOnly();
        if (!BuildConfig.DEBUG) {
            anrWatchDog.setANRListener(FirebaseCrash::report);
        }
        anrWatchDog.start();
    }
}
Also used : FirebaseCrash(com.google.firebase.crash.FirebaseCrash) ANRWatchDog(com.github.anrwatchdog.ANRWatchDog)

Aggregations

ANRWatchDog (com.github.anrwatchdog.ANRWatchDog)2 FirebaseCrash (com.google.firebase.crash.FirebaseCrash)1