Skip to main content

All Questions

1 vote
1 answer
32 views

How can I identify which code in my Android application initiates the creation of threads using the Android Profiler

I am working on a plugin-based application which has different plugins. Each plugin is independent of the others. I am also using the Google Places API as a plugin in it. There is an option to refresh ...
Aditya Mishra's user avatar
0 votes
1 answer
43 views

Unable to find nearby places in android studio using Java

I am working on an Android project and I want to search for nearby places(for example hospital), but this code doesn't work. From what I saw in debugging mode, it skips this line: placesClient....
Michael's user avatar
0 votes
0 answers
29 views

GooglePlacesAutocomplete onpress event not working

During the text change, I can see all the suggested addresses that means the key is working as expected, however when I select and pressed the item nothings happen. The data did not show even I tried ...
user24286023's user avatar
1 vote
0 answers
152 views

Google API Place Autocomplete for Android - Error: Make sure to call shutdown()/shutdownNow() and wait until awaitTermination() returns true

The error seems in the log every times that I search a new address in a AutocompleteActivity from the second time onwards. I am making an Autocomplete functionality in an Android application to API 33 ...
Leonardo Furtado de Luna's user avatar
0 votes
0 answers
52 views

How to customize Google Place API Autocomplete Support Fragment

I am using Google Place API Autocomplete Support Fragment for my Android mobile application. But as you can from the photo, the autocomplete support fragment's design is not uniform with my other ...
NotTwoShake's user avatar
0 votes
0 answers
30 views

Attempt to invoke virtual method 'android.database.Cursor androidx.cursoradapter.widget.CursorAdapter.getCursor()' on a null object reference

My app has a searchview in its top appbar. I am getting suggestions from the PLaces SDK autocomplete feature but when I click any of the suggestions my app crashes and I get this error: FATAL ...
user19334054's user avatar
0 votes
1 answer
122 views

GooglePlacesAutocomplete not working in react-native apk file for android

I implemented Google Places API in my react native project and I'm trying to query places search with the GooglePlacesAutocomplete but for android it only works while testing with expo and when I ...
Eric's user avatar
  • 107
0 votes
0 answers
72 views

Google Places API billing each request individually despite using AutocompleteSessionToken

I am working on an Android application that utilizes the Google Places API to fetch autocomplete suggestions, and later fetch details about a place selected by the user. According to the Google ...
rafik's user avatar
  • 21
0 votes
0 answers
65 views

How can I achieve a smooth direction update using DirectionsAPI (I'm using Google Maps API for my application)

private void getPlaceDetails(String placeName) { // List<Place.Field> placeFields = Arrays.asList(Place.Field.ID, Place.Field.LAT_LNG); AutocompleteSessionToken token = ...
Carlolong's user avatar
0 votes
1 answer
371 views

Autocomplete Service Issue in Restricted Google API Key for React Native Android App

I've encountered an issue with using the Autocomplete service of the Place API after applying a Google API key restriction to my Android application using Android Restricted Key. When the key ...
rafik's user avatar
  • 21
0 votes
2 answers
119 views

Does the AutocompleteFragment provided by the Places API library has a built-in limitation of displaying fixed number of results?

I am currently using the Place API library to search for nearby shores based on the user's current location. However, I have encountered a limitation with the AutocompleteFragment provided by the ...
oussama's user avatar
0 votes
1 answer
159 views

Does not recognize AutocompleteSupportFragment from places library

Designer tells me unknown fragment, but it seems like im importing the library correctly as import com.google.android.libraries.places.widget.AutocompleteSupportFragment; does not generate error and ...
A...'s user avatar
  • 3
0 votes
0 answers
116 views

How can I fix 'Invalid key' error & retrieve JSON data of specific places from Maps API?

So I am trying to use the Places API for an android app. I've used the correct URL to query for the JSON results of places however when I run the app I receive this error in my logcat: data: { "...
Zahid Habib's user avatar
0 votes
1 answer
645 views

How to get selected index from list in kotlin?

We have a list of places(retrieved from google places API) then they are displayed on google map as markers. Then user can select one place from it and pass to this below function. The problem is I am ...
kasunk's user avatar
  • 37
1 vote
1 answer
90 views

Iterating over a List with multiple Place AddressComponents - Kotlin

I am receiving a Place Detail (from Google Maps SDK Android) from a specific place. This Place has different Place Details as a Result. The output is the following: Place found: AddressComponents{...
Fabian K's user avatar

15 30 50 per page
1
2 3 4 5
119