Closed das-abhilash closed 5 years ago
I have solved this so I don't quite know which one of these steps solves it
In console.developer.google.com I enable Places API and Maps API, and download the json from here.
Also, get the API key from Credential page.
In Android Studio
In manifest, add
<meta-data android:name="com.google.android.geo.API_KEY" android:value="YOUR_KEY_FROM_CREDENTIAL_PAGE"/>
In onCreate()
, add this (though I don't quite sure this is needed or not)
private GoogleApiClient mGoogleApiClient; mGoogleApiClient = new GoogleApiClient .Builder(getActivity()) .addApi(Places.GEO_DATA_API) .addApi(Places.PLACE_DETECTION_API) .enableAutoManage(getActivity(), this) .build();
Everything else just follow the tutorial in here.
Hopefully this can help anyone in the future.
This sample has been deprecated/archived (check README for more information on newer samples related to this technology).
As recommended by GitHub, we are closing all issues and pull requests.
Inside the Place Picker map, I couldn't select the location when i try dropping the pin. When I select a place, the select button is disabled. I have tried with different versions of google play version. But the result is the same.