Questions tagged [placeautocompletefragment]

41 questions
7
votes
10 answers

Android Place Autocomplete Fragment: Unable to set text

Google has recently updated their Places SDK for android, so now I'm updating my code too. I'm trying to use the AutocompleteSupportFragment to allow the user to set their address. This is my code: mAddressEditText = (AutocompleteSupportFragment)…
mewais
  • 1,265
  • 3
  • 25
  • 42
6
votes
2 answers

Implementing Google places autoComplete textfield implementation in jetpack compose android

Did anyone implement google autocomplete suggestion text field or fragment in a jetpack compose project? If so kindly guide or share code snippets as I'm having difficulty in implementing it. Update Here is the intent that I'm triggering to open…
3
votes
2 answers

PlaceAutocompleteFragment - null cannot be cast to non-null type (Kotlin)

I'm trying to add a Place Autocomplete Fragment into my fragment by following the official documentation here I get the error kotlin.TypeCastException: null cannot be cast to non-null type…
Barcode
  • 930
  • 1
  • 13
  • 31
3
votes
1 answer

How to combine the place autoComplete Fragment and navigation drawer

I have an android app with Navigation drawer and place AutoComplete fragment. Here is my current UI Current UI Now I can reveal the navigation drawer by swipe finger from left edge of the screen.But for user experience, I'd like to add an menu…
2
votes
0 answers

Map Fragment loops back to current location after searching a new place in SupportPlaceAutocompleteFragment

I have added a Support Place Autocomplete fragment inside a Map Fragment, and it does not seem to work properly for some reason. Whenever I search for a place, the map moves to the correct location for a split second, and automatically returns back…
2
votes
0 answers

Not able to use PlaceAutoCompleteFragment in MapsActivity

I am new in Android App Development. I am trying to use PlaceAutoCompleteFragment on top of my Maps Activity and I am using this link AutoComplete Search bar in Google Maps All works fine but as soon as I click on the search box, keyboard appears…
1
vote
1 answer

com.google.android.gms.location.places.ui.placeautocompletefragment is deprecated

placeautocompletefragmentis deprecated. I need an alternative code for the same. Here's the code sample PlaceAutocompleteFragment autocompleteFragment = (PlaceAutocompleteFragment) …
1
vote
2 answers

Cannot Resolve Symbol "Place.Field"

I am trying to migrate new Auto Complete Place Picker I have updated library from "com.google.android.gms:play-services" to new "com.google.android.libraries.places:places-compat:2.0.0" and implemented SupportPlaceAutocompleteFragment. All works…
1
vote
1 answer

Android Google Place API Error Status{statusCode=PLACES_API_ACCESS_NOT_CONFIGURED, resolution=null}

Hello I am facing the Google Place API Error Status{statusCode=PLACES_API_ACCESS_NOT_CONFIGURED, resolution=null} According to Google new policy "Deprecation notice: Google Play Services version of the Places SDK for Android" Notice: The Google…
1
vote
1 answer

Add personal locations to Google Placeautocomplete list

Is there a way to pin an address to the top of a placeautocomplete search for an android app? http://jsfiddle.net/v9rt3t2y/ This example is in JS/HTML, but I couldn't find anything for native android studio.
1
vote
1 answer

No resource found that matches the given name (at 'background ...') when add placeautocomplete compile

i got a problem. When i add compile for PlaceAutocomplete my project give an error compile 'com.google.android.gms:play-services-maps:11.8.0' compile'com.google.android.gms:play-services-location:11.8.0' …
1
vote
1 answer

How to restrict PlaceAutocompleteFragment to only show public transport stations? Android

I am in process of making a public transport app and for that cause I want to restrict my PlaceAutocompleteFragment to only Tram, Bus and Train Stations within my city. So far I have implemented google map, place autocomplete fragment and restricted…
eaglett
  • 75
  • 1
  • 2
  • 7
1
vote
0 answers

coordinates from google placesautocomplete and google maps are different

I use Google Place Autocomplete Widget to select place. It works well when i display the selected place on a map in my app. But, the problem is the coordinates I get from places autocomplete widget is different from the one we get from google map.…
Jayesh Babu
  • 1,389
  • 2
  • 20
  • 34
1
vote
0 answers

PlaceAutocomplete search bar loses focus when clicked

I have an activity with two fragments: PlaceAutoComplete fragment search bar and google maps. Ideally, the search bar should stay focused when clicked and should allow searches, however as soon as it is clicked, the search bar loses focus and the…
1
vote
1 answer

unresolved class PlaceAutocompleteFragment

This is my .xml file I added the PlaceAutocompleteFragment but its shows unresolved class PlaceAutocompleteFragment. I cheched the dependency file all things are added.
developer
  • 125
  • 1
  • 2
  • 9
1
2 3