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
2
votes
2 answers
Android Location using FusedLocationProviderApi
I am attempting to use the FusedLocationProviderApi to get location data on my tablet but whenever I start the application I get the error
E/MainActivity﹕ Connection failed: ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED,…

Walorn
- 151
- 1
- 4
- 12
2
votes
3 answers
Android LocationServices.FusedLocationApi.getLastLocation returns "null"
I have already read solutions to this question in other threads but I do not seem to understand why does it return null. I have used the same snippet provided in the google developers site:…

user3282666
- 640
- 1
- 7
- 21
2
votes
0 answers
How to update the parameters of LocationServices.FusedLocationApi.requestLocationUpdates
Developing an application where user location is tracked and distance is calculated from the destination. Now as location tracking is kind of heavy process, iam using LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY when the distance from…

tspshikari
- 101
- 1
- 9
2
votes
1 answer
android gps location in service off if device sleep
I need to update the location through GPS/Network in the background even when the phone is in sleep.
I implement android service to archive that goal. But the problem is when I put device in sleep, i notify that the GPS ICON in notification bar…

Vinh.TV
- 299
- 3
- 17
2
votes
2 answers
Frequency of location updates decreases with background location tracking and FusedLocationApi
Google Play Services' Fused Location Provider Api lets you request location updates with location listeners or pending intents. I can successfully request location updates with the location listener but I have been struggling to replicate the same…

Wouter
- 291
- 4
- 12
2
votes
1 answer
RequestLocationUpdates with PendingIntent never fires
I'm trying to run a location check every so often in the background, so I'm trying to use a IntentService to get location updates from the FusedLocationApi. But the PendingIntent never fires.
Code:
public class LocationIntentService extends…

h0x0
- 485
- 3
- 11
2
votes
2 answers
Google Play Services (fused location provider) increases app size significantly?
I've just added location awareness to my app, based on the simple "get last known location" functionality described here, which uses the fused location provider.
I've been trying to keep my app as lightweight as possible, so it's disappointing that,…

drmrbrewer
- 11,491
- 21
- 85
- 181
2
votes
2 answers
Android Fused Location API. Location Always null
I am trying to implement fused location for getting the current location.
I am doing it with the help of this link
My googleAPiCLient is connected. But location is always null
In my Manifest file I have put this

D-D
- 954
- 2
- 12
- 27
1
vote
0 answers
How to get my service launching in background only when the phone is in standby and fire the onLocationResult fusedlocation when the people is moving?
I have my fusedlocationprovider that works perfectly, for the distance and for the time when the person is not moving.
function with my FusedLocationProvider:
private void startLocationUpdates() {
// Demander les mises à jour de position
…

ΩlostA
- 2,501
- 5
- 27
- 63
1
vote
0 answers
FusedLocationProviderClient doesn't work with PRIORITY_BALANCED_POWER_ACCURACY (no satellites), only with PRIORITY_HIGH_ACCURACY
Previously in my app I have been using PRIORITY_HIGH_ACCURACY for FusedLocationProviderClient:
private fun getLocationRequest(): LocationRequest =
LocationRequest.Builder(prefsManager.getLocationFrequency).apply {
…

user924
- 8,146
- 7
- 57
- 139
1
vote
0 answers
Manually updating android emulator location doesn't trigger FusedLocationProvider subscription
I'm working on testing an app right now that relies on location to update content presented to the user, and I'm having an issue with the results when running in the android emulator. If I set the emulator's location, the initial request to…

Jony Thrive
- 931
- 1
- 7
- 15
1
vote
2 answers
Best way to get current address location Kotlin 2023
I want to create a current location button to get the current address of the user. Currently I am using fusedLocationClient.lastLocation but its slow and sometimes it does not work.
Is there a better and updated way to get the current address from…

Cipri
- 57
- 1
- 9
1
vote
0 answers
how to get more stable locations rather than more accurate ones
my app uses the fusedlocationprovider api to retrieve the user current location and showing a marker on the map every second using the following code
locationRequest = LocationRequest.create().apply {
interval = 1000
…

kamal douma
- 396
- 1
- 7
- 13
1
vote
0 answers
FusedLocationProvider rapid updates when Google Maps are turned on
I'm using FusedLocationProvider in my app and I noticed that when my app is in the background and I start some other app that contains Google Map my original app starts receiving location updates extremely fast (like 1 update per second) despite…

Jogosb
- 155
- 1
- 12
1
vote
0 answers
Use FusedLocationProvider When Device is Asleep
I am using Fused Location Provider Client and Location Request on an android app to send the phone's location every 5 seconds. However, I stop getting location updates when the device is asleep. I want the ability to do this even when the device is…

pilotman
- 11
- 1