The Fused Location Provider intelligently manages the underlying location technology and gives you the best location according to your needs.
Questions tagged [fusedlocationproviderapi]
436 questions
3
votes
0 answers
using jobScheduler along with fusedLocation service
I use JobScheduler to send location of user periodically to the server in background using a JobService. I am confused between using time schedules set by JobScheduler and the intervals set by requestLocationUpdates.
Let assume that I want to send…

Ali Sheikhpour
- 10,475
- 5
- 41
- 82
3
votes
0 answers
ApiException which checking for location settings in FusedLocationApi
I am using Google Fused Api to retrieve location in my app. So as usual before request location updates I checking for location settings status using mSettingsClient?.checkLocationSettings(mLocationSettingsRequest). This seems to be working on every…

darthvish
- 61
- 5
3
votes
2 answers
Why does FusedLocationProviderApi never report accuracy better than 10m? Is this documented?
A data collection app that used LocationManager directly was updated to use FusedLocationProviderApi. With LocationManager, most devices quickly report 5m accuracy or better when collecting location. With FusedLocationProviderApi, the best accuracy…

Hélène Martin
- 1,409
- 2
- 15
- 42
3
votes
2 answers
How to track current location in android with new architecture components?
I have a project, in which I have successfully implemented location tracking feature, and is working perfectly. I am tracking users current location using fused location provider in every 30 seconds.(tracking starts when MainActivity started).
Now I…
user6935333
3
votes
3 answers
android check if user turned off location
I am building an application in which I have to constantly save user's location and then send it to the server. For that, I am using FusedLocationApis in a service. For the first time, I am asking user to turn on locations.
It is working…

Sanjeev
- 53
- 2
- 5
3
votes
2 answers
FusedLocationProviderClient takes up to 30 seconds to retrieve first location updates
When I first boot my app, it takes FusedLocationProviderClient up to 30 seconds to start providing location updates (i.e. up to 30 seconds before the blue dot shows up). I have a FusedLocationProvider that encapsulated in a LiveData as seen below…

BeardMagician
- 647
- 13
- 26
3
votes
2 answers
Fused location stops sending updates after several hours
If I left application turned on for several hours fused location stops sending updates...
I am creating location request with hight priority , here is code :
LocationRequest = LocationRequest.create()
…

Nininea
- 2,671
- 6
- 31
- 57
3
votes
0 answers
FusedLocationProvider maxWaitTime not behaving as expected
I just converted my Location tracking code to use LocationCallback to take advantage of the batching. However, what I'm finding is that locations are rarely batched, and that the overall reporting rate is reduced from my request rate.
First, look at…

Opus1217
- 723
- 4
- 17
3
votes
1 answer
Fused Location Provider class not found despite Google Play Services dependency in gradle file
My app uses the FusedLocationProviderApi for getting the current location. I've already put the line which allows the app to use Google Play Services in the gradle file for my app module:
compile…
user8108350
3
votes
2 answers
What are good strategies for dealing with background location limits for apps running on O devices?
Given the limits placed on location gathering on Android apps running in the background on O devices, what are good options for developers who want more frequent location updates?
I realize that O is still in developer preview, but there are…

Shailen Tuli
- 13,815
- 5
- 40
- 51
3
votes
2 answers
Memory leak when removing location update from a fragment in onPause
In one of the fragments in my app, I require location updates in order to determine when the user is near a short list of locations so relevant information is available to the user. When I create a location update request in the onConnected()…

malodita
- 53
- 1
- 5
3
votes
1 answer
Update Location data UI using AsyncTaskLoader?
I am using the FusedLocationProvider API for an app. The location of the device should be updating regularly since the user is expected to be moving around all the time, and the app should behave differently depending on the current device location.…

rfn123
- 151
- 3
- 12
3
votes
1 answer
Getting Incorrect current GPS location in FusedLocationProviderApi
I have following LocationService.java service class.
public class LocationService extends Service
implements LocationListener,
GoogleApiClient.ConnectionCallbacks,
GoogleApiClient.OnConnectionFailedListener {
private…

Himanshu
- 861
- 10
- 25
3
votes
0 answers
Does Google Fused Location need internet access to provide a network location?
I have a scenario in which our location providing app runs within a closed APN i.e not an open internet connection. When i set my device to only use the network location provider (Not GPS or even WiFi) i cannot get a location fix. The same code and…

rpstacky
- 31
- 4
3
votes
3 answers
Jumps in location on using fused location api
I am tracking rider's location(bike rider) and calculating total distance travelled per session by him. I have used fused location api only (no GPS). There are times when I am getting jumps in location and due to these jumps extra distance is…

Sakshi Gupta
- 116
- 11