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();
}
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();
}
}
Aggregations