Search in sources :

Example 11 with Crashlytics

use of com.crashlytics.android.Crashlytics in project pictureapp by EyeSeeTea.

the class EyeSeeTeaApplication method onCreate.

@Override
public void onCreate() {
    super.onCreate();
    Log.d(TAG, "onCreate");
    Fabric.with(this, new Crashlytics());
    PreferencesState.getInstance().init(getApplicationContext());
    FlowConfig flowConfig = new FlowConfig.Builder(this).addDatabaseHolder(EyeSeeTeaGeneratedDatabaseHolder.class).build();
    FlowManager.init(flowConfig);
}
Also used : FlowConfig(com.raizlabs.android.dbflow.config.FlowConfig) EyeSeeTeaGeneratedDatabaseHolder(com.raizlabs.android.dbflow.config.EyeSeeTeaGeneratedDatabaseHolder) Crashlytics(com.crashlytics.android.Crashlytics)

Example 12 with Crashlytics

use of com.crashlytics.android.Crashlytics in project SeriesGuide by UweTrottmann.

the class SgApp method initializeLogging.

private void initializeLogging() {
    if (BuildConfig.DEBUG) {
        // debug drawer logging
        LumberYard lumberYard = LumberYard.getInstance(this);
        lumberYard.cleanUp();
        Timber.plant(lumberYard.tree());
        // detailed logcat logging
        Timber.plant(new Timber.DebugTree());
    } else {
        // crash and error reporting
        Timber.plant(new AnalyticsTree(this));
        if (!Fabric.isInitialized()) {
            Fabric.with(this, new Crashlytics());
        }
    }
    // Ensure GA opt-out
    GoogleAnalytics.getInstance(this).setAppOptOut(AppSettings.isGaAppOptOut(this));
    if (BuildConfig.DEBUG) {
        GoogleAnalytics.getInstance(this).setDryRun(true);
    }
    // Initialize tracker
    Analytics.getTracker(this);
}
Also used : LumberYard(io.palaima.debugdrawer.timber.data.LumberYard) Timber(timber.log.Timber) Crashlytics(com.crashlytics.android.Crashlytics)

Example 13 with Crashlytics

use of com.crashlytics.android.Crashlytics in project StarWars.Android by Yalantis.

the class App method onCreate.

@Override
public void onCreate() {
    super.onCreate();
    Fabric.with(this, new Crashlytics());
    app = this;
    Timber.plant(new Timber.DebugTree());
}
Also used : Timber(timber.log.Timber) Crashlytics(com.crashlytics.android.Crashlytics)

Example 14 with Crashlytics

use of com.crashlytics.android.Crashlytics in project qksms by moezbhatti.

the class QKSMSApp method onCreate.

@Override
public void onCreate() {
    super.onCreate();
    Fabric.with(this, new Crashlytics());
}
Also used : Crashlytics(com.crashlytics.android.Crashlytics)

Example 15 with Crashlytics

use of com.crashlytics.android.Crashlytics in project ButterRemote-Android by se-bastiaan.

the class OverviewActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    Fabric.with(this, new Crashlytics());
    if (!PrefUtils.contains(this, "intro")) {
        Intent intent = new Intent(this, IntroActivity.class);
        startActivity(intent);
        finish();
    }
    setContentView(R.layout.activity_framelayout);
    ButterKnife.bind(this);
    setSupportActionBar(toolbar);
    if (Build.VERSION.SDK_INT > Build.VERSION_CODES.JELLY_BEAN_MR2) {
        toolbar.setLayoutParams(new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT, getResources().getDimensionPixelSize(R.dimen.abc_action_bar_default_height_material) + PixelUtils.getStatusBarHeight(this)));
    } else {
        toolbar.setLayoutParams(new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT, getResources().getDimensionPixelSize(R.dimen.abc_action_bar_default_height_material)));
    }
    progressBar.setVisibility(View.GONE);
    FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
    fragmentTransaction.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out);
    fragmentTransaction.replace(R.id.frameLayout, new InstanceListFragment());
    fragmentTransaction.commit();
}
Also used : FragmentTransaction(android.support.v4.app.FragmentTransaction) RelativeLayout(android.widget.RelativeLayout) Intent(android.content.Intent) InstanceListFragment(eu.se_bastiaan.popcorntimeremote.fragments.InstanceListFragment) Crashlytics(com.crashlytics.android.Crashlytics)

Aggregations

Crashlytics (com.crashlytics.android.Crashlytics)19 Intent (android.content.Intent)3 Handler (android.os.Handler)3 Timber (timber.log.Timber)3 Toolbar (android.support.v7.widget.Toolbar)2 View (android.view.View)2 Answers (com.crashlytics.android.answers.Answers)2 CrashlyticsCore (com.crashlytics.android.core.CrashlyticsCore)2 FlowConfig (com.raizlabs.android.dbflow.config.FlowConfig)2 Fabric (io.fabric.sdk.android.Fabric)2 SharedPreferences (android.content.SharedPreferences)1 Bundle (android.os.Bundle)1 FloatingActionButton (android.support.design.widget.FloatingActionButton)1 NavigationView (android.support.design.widget.NavigationView)1 FragmentTransaction (android.support.v4.app.FragmentTransaction)1 DrawerLayout (android.support.v4.widget.DrawerLayout)1 ActionBarDrawerToggle (android.support.v7.app.ActionBarDrawerToggle)1 RecyclerView (android.support.v7.widget.RecyclerView)1 StaggeredGridLayoutManager (android.support.v7.widget.StaggeredGridLayoutManager)1 RelativeLayout (android.widget.RelativeLayout)1