Questions tagged [android-fusedlocation]

Synonym for Android Fused Location Provider which intelligently manages the underlying location technology and gives you the best location according to your needs.

Fused location provider:

The Fused Location Provider intelligently manages the underlying location technology and gives you the best location according to your needs.

  • Simple APIs: Lets you specify high-level needs like "high accuracy" or "low power", instead of having to worry about location providers. Immediately available: Gives your apps immediate access to the best, most recent location.

  • Power-efficiency: Minimizes your app's use of power. Based on all incoming location requests and available sensors, fused location provider chooses the most efficient way to meet those needs.

  • Versatility: Meets a wide range of needs, from foreground uses that need highly accurate location to background uses that need periodic location updates with negligible power impact.

Tutorials:

328 questions
2
votes
0 answers

How to mock location on Android?

I use the code below to set a mock location without requiring the Location permission. However, the code is inconsistent on Android devices with the latest Google Play Services version which utilizes the FusedLocationProviderClient. Sometimes it…
user13273341
2
votes
1 answer

Android FusedLocationProviderClient.requestLocationUpdates() returning same location coordinates

I found two types of question like this one on SO, but both have no answers. I'm using FusedLocationProviderClient to get the location of my device. I've lunched a background service to get the location using requestLocationUpdates(). Even when the…
2
votes
1 answer

Android 10 blocks network requests and GPS calls when screen is off

I made an application which actually sends User Location to server for every 15 min. This uses Alarm Manager (one shot) which triggers the next one. The alarm manager triggers a foreground service which is responsible for Fetching user location and…
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
1 answer

Not getting location in Android 8.0.0 Oreo

I am building an app in React-Native and need to have location access as per the requirement. I have tried using react-native-fused-location for the same, as below. FusedLocation.setLocationInterval(20000); …
2
votes
0 answers

How to replace FusedLocationAPI deprecated method in this code?

I am trying to implement an app that uses Google Map API, I'm using this deprecated method and it's causing my app to not perform properly. deprecated method is: FusedLocationAPI, any ideas how to replace it in this context? code: public void…
2
votes
0 answers

Google Maps API v2 default marker not aligned with manually drawn marker in LocationCallback()

I've been looking online for the past couple of weeks about this and it seems I'm not asking the right questions so posting one here. Thanks in advance for any info. Using Android v7.1 and Google Maps API v2 I want to show a user's location on a map…
2
votes
1 answer

OnLocationResult of fused Location api is only called once even when i have requested updates in given time interval in android

I have read a few questions and answers related to this , but none has solved my problem. Please suggest me what should i do. I am using this fused location api in my android background service. And i have provided all the nougat/marshmellow checks…
2
votes
2 answers

FusedLocation not working when I turn off and on the Location in google settings android

I am using fused location by comparing the current location with given location from response. It's working fine. But when I turn off the location in settings and then turn on the location, the below method is not working. It directly falls in else…
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

FusedLocationApi Performance Issue: Accuracy seems capped at 10.0 meters

I'm experiencing a strange problem where the FusedLocationProviderAPI does not give me a better Accuracy number then 10.0 meters. It starts like normal giving me a high number of, for example, 56 meters... 24... 13... and then stays at 10.0.…
thelastchief
  • 211
  • 3
  • 12
2
votes
2 answers

Move marker instead of adding it after requestLocationUpdates in kotlin

I'm using google map in kotlin with help of this tutorial Introduction to Google Maps API for Android with Kotlin. in this tutorial showed how can add a marker after location updated but when it updated,there is still a marker in previous location…
2
votes
0 answers

Decrease delay for getting location of user

I am coding an app in which a specific module requires the user's location. Now I am using Google's Fused Location API which can be found here. The problem came when the location from the user's settings is turned off. I wrote a code which prompted…
2
votes
2 answers

Android - app crash due to location permission revoked from setting

We're using android background service for the location tracking where registering fused google api for periodic location update. When we've to start service for location update, we ask for location permission and if user accept then we start…
2
votes
1 answer

FusedLocationProviderClient PRIORITY_HIGH_ACCURACY performs worse than other priorities

I'm testing the accuracy of the FusedLocationProviderClient's location updates with different priorities. In the application I am first getting 15 updates with PRIORITY_HIGH_ACCURACY, then canceling the request, changing the priority to…
Jesper
  • 2,644
  • 4
  • 30
  • 65