@Override
  public void onCreate(Bundle savedInstance) {

    super.onCreate(savedInstance);
    final Fabric fabric = new Fabric.Builder(this).kits(new Crashlytics()).debuggable(true).build();
    Fabric.with(fabric);

    checkForUpdates();

    if (messenger().getAuthState() != AuthState.LOGGED_IN) {
      // TODO: Move this to where you establish a user session
      logUser();

      startActivity(new Intent(this, TourActivity.class));
      finish();
      return;
    }

    // getWindow().setBackgroundDrawable(new
    // ColorDrawable(getResources().getColor(R.color.bg_main)));
    getWindow().setBackgroundDrawable(null);
  }
 @Override
 protected void onPause() {
   super.onPause();
   messenger().trackMainScreensClosed();
 }
 @Override
 protected void onResume() {
   super.onResume();
   messenger().trackMainScreensOpen();
 }