Search in sources :

Example 51 with Crashlytics

use of com.crashlytics.android.Crashlytics in project Memento-Calendar by alexstyl.

the class FabricTracker method startTracking.

@Override
public void startTracking() {
    if (BuildConfig.DEBUG) {
        Log.d(TAG, "Ignoring Crash Tracking in DEBUG builds");
        return;
    }
    Fabric.with(context, new Crashlytics());
    Log.i(TAG, "Crashlytics tracking started ");
    hasBeenInitialised = true;
    Crashlytics.setString(KEY_LOCALE, String.valueOf(Locale.getDefault()));
}
Also used : Crashlytics(com.crashlytics.android.Crashlytics)

Aggregations

Crashlytics (com.crashlytics.android.Crashlytics)51 SharedPreferences (android.content.SharedPreferences)6 Handler (android.os.Handler)6 Intent (android.content.Intent)5 Timber (timber.log.Timber)5 View (android.view.View)4 PackageInfo (android.content.pm.PackageInfo)3 PackageManager (android.content.pm.PackageManager)3 StrictMode (android.os.StrictMode)3 Fabric (io.fabric.sdk.android.Fabric)3 File (java.io.File)3 Manifest (android.Manifest)2 SuppressLint (android.annotation.SuppressLint)2 ContentUris (android.content.ContentUris)2 DialogInterface (android.content.DialogInterface)2 IntentFilter (android.content.IntentFilter)2 Bundle (android.os.Bundle)2 Environment (android.os.Environment)2 NonNull (android.support.annotation.NonNull)2 FloatingActionButton (android.support.design.widget.FloatingActionButton)2