Tuesday, June 18, 2019

Android AutocompleteFragment results return a place with null attributes or android Place latlng null

Problem: AutocompleteFragment results return a place with null attributes or android Place latlng null

Solution:

Why?
=you didn't allow in setPlaceFields what do you want.
For example, I want latlng so I have added LAT_LNG. see below.

 autocompleteFragment.setPlaceFields(Arrays.asList(Place.Field.ID, Place.Field.NAME,Place.Field.LAT_LNG));

No comments:

Post a Comment