@Override
  protected void onRestart() {
    super.onRestart();
    // Load all groups and events to be available for offer and search rides
    Group.loadGroups(this);
    Event.loadEvents(this);

    // refresh rides
    activityFragment.sendGetRidesRequest(GETUSER_RELAVENT_RIDE_URL);

    if (!mGoogleApiClient.isConnected()) {
      mGoogleApiClient.connect();
    }
  }
  @Override
  public void onConnected(Bundle bundle) {
    // onConnected indicates that an account was selected on the device, that the selected
    // account has granted any requested permissions to our app and that we were able to
    // establish a service connection to Google Play services.
    Log.d(TAG, "onConnected:" + bundle);
    mShouldResolve = false;

    // Load all groups and events to be available for offer and search rides
    Group.loadGroups(this);
    Event.loadEvents(this);

    // Show the signed-in UI
    showSignedInUI();
  }