@Override
  protected void onResume() {
    super.onResume();
    getGAApp().getConnectionObservable().addObserver(this);

    ConnectivityObservable.State state = getGAApp().getConnectionObservable().getState();
    if (state.equals(ConnectivityObservable.State.LOGGEDIN)) {
      // already logged in, could be from different app via intent
      final Intent mainActivity = new Intent(MnemonicActivity.this, TabbedMainActivity.class);
      startActivity(mainActivity);
      finish();
      return;
    }
  }
  @Override
  public void onResume() {
    super.onResume();
    getGAApp().getConnectionObservable().addObserver(this);

    final ConnectivityObservable.State state = getGAApp().getConnectionObservable().getState();
    // FIXME : recheck state, properly handle TEE link anyway
    // if (state.equals(ConnectivityObservable.State.LOGGEDIN) ||
    // state.equals(ConnectivityObservable.State.LOGGINGIN)) {
    if (state.equals(ConnectivityObservable.State.LOGGEDIN)) {
      // already logged in, could be from different app via intent
      final Intent mainActivity = new Intent(FirstScreenActivity.this, TabbedMainActivity.class);
      startActivity(mainActivity);
      finish();
      return;
    }
    if (getSharedPreferences("pin", MODE_PRIVATE).getString("ident", null) != null) {
      final Intent tabbedMainActivity = new Intent(FirstScreenActivity.this, PinActivity.class);
      startActivity(tabbedMainActivity);
      finish();
    }
  }