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