Google places getPlaceById callback not getting invoked
<p>I am building an android app that saves a place ID retrieved from the PlaceAutocomplete API. At a later point, I am trying to get the details of the place using the getPlaceById() API. I see that the callback is never getting called.</p>

<p>I have set the following permission:</p>

<pre><code>&lt;uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/&gt;
</code></pre>

<p>I have also added the API_KEY:</p>

<pre><code>       &lt;meta-data
        android:name="com.google.android.geo.API_KEY"
        android:value=&lt;API KEY&gt;/&gt;
</code></pre>

<p>However, I am unable to retrieve the place details. "onResult" never seems to be getting called. Can anyone please help me with where I might be going wrong?</p>

<p>Thanks!</p>

<p>Below is the code snippet that I am using. Have hardcoded the PlaceId here for simplicity :</p>

<pre><code>    PendingResult&lt;PlaceBuffer&gt; placeResult = Places.GeoDataApi.getPlaceById(mGoogleApiClient, "ChIJi-t8KwUWrjsRlp-L9ykb2_k");
    placeResult.setResultCallback(new ResultCallback&lt;PlaceBuffer&gt;() {
        @Override
        public void onResult(PlaceBuffer places) {
            Log.i(TAG, "Testing");
            if (places.getStatus().isSuccess() &amp;&amp; places.getCount() &gt; 0) {
                final Place myPlace = places.get(0);
                Log.i(TAG, "Place found: " + myPlace.getName());
            } else {
                Log.e(TAG, "Place not found");
            }
            places.release();
        }
    });
</code></pre>