Questions tagged [google-location-services]

The google (android) specific api of location-services, which is used to determine your approximate location. Your location could be determined using data from cellular, Wi-Fi or Global Positioning System (GPS) networks.

This tag can be used in posts relating to either Google Play services location APIs or the Android framework location APIs.

234 questions
0
votes
1 answer

FusedLocationProviderClient could not be found in Google Play Services

I am trying to use Location Service of Google Play Services with Xamarin by following this link: https://learn.microsoft.com/en-us/xamarin/android/platform/maps-and-location/location IsGooglePlayServicesInstalled function returns true, and…
0
votes
1 answer

Stop receiving location in background after few days in some new devices meanwhile in others works OK

I made an app that mostly works as a tracker. The issue is that works correctly in almost every device i test for days and in background. Test in: Motorola XT1563 , working since 2018-02-02 Motorola XT1635-02 , since 2018-01-24 Samsung E7, since…
0
votes
2 answers

Reverse geocoding not working returns IOException and NullPointerException

I get the latitude and longtitude but I can't do the reverse geocoding, I have seen so many tutorials and they're working right but mine is not! Here's my code: if (mLastLocation != null) { double latitude =…
Erika
  • 148
  • 3
  • 14
0
votes
1 answer

Android GPS accuracy only high when Google Maps route guidens is ON?

I need accurate GPS location in my Android app. I am using this Cordova plugin to achieve GPS locations: https://github.com/pmwisdom/cordova-background-geolocation-services This is the code that requests GPS location: if (locationClientAPI ==…
Jolle
  • 1,336
  • 5
  • 24
  • 36
0
votes
1 answer

Migrating Google Play Services Location for Android O - supporting many devices

I have a Service running which gets the users location periodically. I have just migrated all the code over to support Android O. Ie. I got rid of FusedLocationAPI and GoogleApiClient. I have replaced them with FusedLocationProviderClient instead,…
0
votes
1 answer

Google geocode api not returning neighborhood in response

I am using Google Geocode API to fetch neighborhood from the latitude and longitude . Below is the request URL - https://maps.googleapis.com/maps/api/geocode/json?latlng=-15.535573,-47.336828&sensor=true Below is the response - { "results": [ …
0
votes
1 answer

D/ERROR: Can Not Get Your Location:

On location_switch click User go online and check for current location.But on switch click, it is not showing my current location. I am using an emulator for checking app. Even I change location in emulator but it is not working. Once the location…
Piyu
  • 43
  • 2
  • 8
0
votes
0 answers

sometimes my app is Stuck on an old location and does not update

Hi I am developing android location tracker.I have developed two application one is for sending location of driver and other is for tracking the location of driver. Application is running well but sometimes my driver application's location is unable…
0
votes
1 answer

Adding favorite location in google autocomplete list

Is there any way to add an additional location to the Google autocomplete. I need to search in my 'favorite locations' list and bring the location from that list to the top of the search results. Pls find the code snippet that I have used for…
0
votes
1 answer

How to construct polygon using geolocation as coordinate using Google S2 Library

I am able to construct rectangle using Google S2 Library but I am not able to construct polygon using Google S2 Library, I have tried with different method to create polygon but not able to create ,Could you please help me on this. my code is : …
0
votes
1 answer

real time location track

In my app I am required to implement real time location tracking and find the total distance traveled by person. I have tried using the Google location manager api. I can successfully fetch the location from a device while traveling. But the…
0
votes
0 answers

LocationListener.onLocationChanged not called for Oreo Device

Callback method LocationListener.onLocationChanged() not called in the Oreo devices and on devices below Oreo it's working fine. Is this coming due to using of deprecated class LocationServices.FusedLocationApi?
0
votes
1 answer

Error:Failed to resolve: com.google.android.gms

Error:Failed to resolve: com.google.android.gms:play-services-basement:[11.0.4] Error:Failed to resolve: com.google.android.gms:play-services-tasks:[11.0.4] When i used android studio 2.3.2 version my project build successfully but after updated…
0
votes
2 answers

Can I request access to a users google location without a mobile app?

I'm working on an android things project that will show the location of all members in a group with each other. The android things app is meant to be the primary UI (my ultimate plan is like the Harry Potter clock that showed all the weasley family…
0
votes
0 answers

How to properly update location when requesting permission at run time?

I am trying to update the users location every second (every second I want a log message to appear which contains the actual position of the user), for this I have to ask the user at run time if he wants to allow the app to get access to his…
sininen
  • 503
  • 1
  • 6
  • 20