code: public static GoogleApiClient connect(GoogleApiClient client, ConnectedListener connected,
                                            OnConnectionFailedListener failed) {
          client.registerConnectionCallbacks(new ConnectionListener(connected));
          client.registerConnectionFailedListener(failed);
          client.connect();
          return client;
      }
docs: Register the listeners and then connect the client.