Ejemplo n.º 1
0
  @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);
  }
Ejemplo n.º 2
0
 @Override
 protected void onPause() {
   super.onPause();
   messenger().trackMainScreensClosed();
 }
Ejemplo n.º 3
0
 @Override
 protected void onResume() {
   super.onResume();
   messenger().trackMainScreensOpen();
 }