Question: I implement `GoogleApiClient` as bellow:

```
 mGoogleApiClient = new GoogleApiClient.Builder(this)
                .enableAutoManage(this, 0 /* clientId */, this)
                .addApi(LocationServices.API)
                .addApi(Places.GEO_DATA_API)
                .addConnectionCallbacks(this)
                .build();

```

But in `onConnected` method I check mGoogleApiClient => value null.
In this case I try to re-build googleApiClient but I get error: 

```
  java.lang.IllegalStateException: Already managing a GoogleApiClient with id 0

```

Please help me understand why mGoogleApiClient is sometimes NULL althought it's connected :|. (Notes. I checked all source code, I never set GoogleApiClient to NULL).

Thanks!

**Update**

My problem now solved after I try use latest version of play-service.

Thanks everybody for help.

Answer: 
I think you'd better watch this reference. 

[reference page of "public GoogleApiClient.Builder enableAutoManage"](https://developer.android.com/reference/com/google/android/gms/common/api/GoogleApiClient.Builder.html#enableAutoManage(android.support.v4.app.FragmentActivity,%20int,%20com.google.android.gms.common.api.GoogleApiClient.OnConnectionFailedListener))

In this page shows that, through IllegalStateException if clientId is already being auto-managed. 
So, check on your code with 

```
                .enableAutoManage(this, 0 /* clientId */, this)

```

I think if exception on your code, it could return zero as not completed.
I had the same problem (Already managing a GoogleApiClient with id 0) in a fragment, and finally I resolved it : 

* Override `onStart()` and `onStop()` normally
* Add in `onStop()` call `yourApiGoogle.stopAutoManage(context);`

Have a nice day...