googlearchive / android-play-places

Deprecated:
https://github.com/googlemaps/android-places-demos
Apache License 2.0
477 stars 580 forks source link

Dropping the pin doesn't select the place in place picker #56

Closed das-abhilash closed 5 years ago

das-abhilash commented 8 years ago

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. screenshot_2016-09-07-20-44-49 1

Habibah28 commented 7 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.

codingjeremy commented 5 years ago

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.