Read complete story

Android Google Places Autocomplete

The autocomplete service in the Google Places API for Android returns place predictions in response to user search queries.

Add the dependency to your buid.gradile

Add the following tag to your  AndroidManifest.xml under application tag.

Creating the layouts of the main GooglePlacesAutocompleteActivity

Place is an instance of PlaceAutocompteFragment setOnPlaceSelectedListener to place instance.

You can filter the places which should be listed in suggestion, Like suppose if you want to show just city name instead of entire address, you can add the filter like this:

 

 

 

 

. . .

Comment

Add Your Comment

Be the first to comment.

css.php
Hire Us!
Brief us about your requirements and we'll get back to you.
Woo! Hooy!
We have just recieved your project brief and our expert will contact you shortly.
Send Again
Close