Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
1 vote
1 answer
34 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
0 answers
69 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
0 answers
86 views

google directions api always returning empty route

I'm trying to make use of the directions api to draw route on map. I created the interface below so I can call the getRoutes() Function inside the interface in the mainactivity and access texts from ...
kosi's user avatar
  • 1
0 votes
1 answer
167 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
119 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
1 vote
0 answers
322 views

How to get the distance to a place from an FindAutocompletePredictionsRequest?

I'm working on a custom EditText autocomplete and I'd like to get the distance between my current location and the received place from the FindAutocompletePredictionsRequest too. As a response I get ...
Ion's user avatar
  • 91
-2 votes
1 answer
42 views

What is the photo_reference field in the Places API?

I understand most of the fields in the Places API, but I don't understand how to interpret the photo_reference field in the JSON. Here is the Snapshot of the JSON: click to see the screenshot
Sahil's user avatar
  • 21
0 votes
2 answers
1k views

Required by: project :app > com.google.android.libraries.places:places:2.4.0

i am trying to implement PlaceAutoComplete powered by Google in my application. but i am unable to do this... i have implemented the required dependency in app-level build.gradle file and write code. ...
Aqeel Mughal's user avatar
  • 2,327
0 votes
0 answers
75 views

how to find near places with json api (with a non google-places-api service)

I am working on a android app project that tells nearby places with json api (non-google service). I am stuck at a error that gives, Attempt to invoke interface method 'int java.util.List.size()' on a ...
Abdul Hadi's user avatar
0 votes
0 answers
631 views

java.lang.IllegalStateException while parsing Json string response using Gson()

I am working with Google Places API to get information about a place findplacefromtext endpoint. Here is the code I am working with to make the request OkHttpClient client = new OkHttpClient()....
LearningAsIGo's user avatar
-1 votes
2 answers
327 views

Can not get places data from google map in android

I want to show the list of nearby hospitals, but I cannot get the data from Google Maps. (But when I use the API key of the user from where I have learned to display the map in android, I am able to ...
Akshay Rajput's user avatar
0 votes
2 answers
464 views

Why Line by line execution does not happen in Android Studio?

I have created a Place[] type array p to store the place obtained through fetchPlace() method. I have just shown the some lines code of a function which I have to call. But when I call this function ...
Aditya's user avatar
  • 3
2 votes
1 answer
365 views

Restrict Google Places to country in JAVA

I am using GooglePlaces to get places myController.java @GetMapping("/connexionFR") public String displayLoginPageFR(Model model) { ... client = new GooglePlaces("MY_KEY_GOOGLE"); ...
Yagami Light's user avatar
  • 1,776
0 votes
1 answer
333 views

Can Google's Places API findCurrentPlace method be used to get the exact current address, rather than the address of the closest 'Place'?

I am currently using the Google Places API within my (Java) Android application to get the current device location and display it into an editText. Currently when I make the call to placesClient....
Diadantic's user avatar

15 30 50 per page
1
2 3 4 5
20