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
3
votes
2 answers

Location Services from Google Play do not work in mode "Device Only"

I have an app that tracks the location of the device. In the past I used the Android framework location APIs. Worked as intended – so no real need to change that. But now I want to evaluate the Location Services from the Google Play Services that…
Sqrt-1764
  • 321
  • 1
  • 17
2
votes
2 answers

Memory leak with Location update with fusedLocationProvider

Most of the common suggestions is, as it seems leaks are coming from context, use application context and detach location call from activity lifecycle. I did both previous thing and also later. But leak still existing. Here is my implementation with…
asish
  • 4,767
  • 4
  • 29
  • 49
2
votes
0 answers

What is the unit of distance parameter in Google Takeout Location history JSON files?

Here's a snippet from Google Takeout Location history file. I'm supposing that distance provided by Google is in meters. So when I divide it by 1000, I get 5.69 km. So far so good. But when I browse to this trip from Google timeline, it shows me…
2
votes
0 answers

Is there any restricion when using LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY in foreground service?

When app running in foreground and activity is visible to the user then using LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY in a bound service I am able to receive location updates in the bound service but when the app is in the background and…
Arpan Sarkar
  • 2,301
  • 2
  • 13
  • 24
2
votes
0 answers

How to get accurate geo-location from browser in vue js application

I was building a geolocation application and I got the coordinates that are not accurate at all, it has a minimum 200000meters difference. data(){ return{ options :…
2
votes
1 answer

Android periodic location locationRequest.interval not working

TL;DR : Android requestLocationUpdates() has locationRequest.interval = 10000 which does not happen, is something wrong? In Details: Successfully implemented Android period location and it works fine, using this reference…
2
votes
0 answers

ANR Input dispatching timed out when get location & address (GPS)

I am trying to get last location and convert it to address using JobIntentService then send the result to UI using ResultReceiver. All working normally except for some specific devices which resulted in ANR. Here is the log from Android…
Selmeny
  • 220
  • 3
  • 11
2
votes
0 answers

markers on GoogleMap jumps randomly

My Dashboard Fragment: public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.fragment_dashboard, container, false); …
2
votes
0 answers

How to get the result from a call to google services?

I'm trying to get the location with the google-location services for android. I've tried to fiddle with some methods from the google api from the tasks package, but all seem to fail. More exactly, my application starts to hang. public class…
2eety
  • 89
  • 1
  • 13
2
votes
1 answer

Fused Location Provider - getting high accuracy

I'm trying to find a way to improve the accuracy obtained from Google Play Services's Fused Location Provider. I'm testing an app that uses LocationServices and allows the user to choose from a set of update frequencies (every 30 seconds, every min,…
2
votes
2 answers

Can I pass a ResolvableApiException to a new activity?

I am using Google Play Services to get a user's location (package com.google.android.gms:play-services-location:16.0.0). As described here, you can prompt the user to turn on location settings if necessary via a dialog that is launched using…
2
votes
0 answers

Get FusedLocationProviderClient BroadcastReceiver to restart on boot completed

I've managed to implement background location updates using FusedLocationProviderClient PendingIntent and BroadcastReceiver inside my MainActivity class but when I restart my phone I am unable to get it triggering again. I added
2
votes
0 answers

Geofences triggering accurately only when Maps are open

I have built an app that triggers geofences defined in the app. But after a restart, it requires me to open Maps for obtaining the current location for it to generate the notification. Can't post the code due to security reasons. Can someone tell…
madKC
  • 55
  • 1
  • 9
2
votes
0 answers

LocationFusedAPI setMaxWaitTime works only once

I've a simple app with LocationFused API implementation: protected void startLocationUpdates() { mFusedLocationClient = LocationServices.getFusedLocationProviderClient(this); Intent intent = new Intent(this, LocationReceiver.class); …
2
votes
1 answer

MapsActivity cannot be cast to com.google.android.gms.location.LocationListener

I am trying to build an android app related to google map using an android studio 3.0.1 that uses the user location.I am facing an exception in my application, the exception is related to com.google.android.gms.location.LocationListner in android. I…
Mrunal
  • 578
  • 2
  • 21
  • 39
1 2
3
15 16