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
FusedLocationProviderClient always returns false in onLocationAvailability callback on Sony Xperia Z2
FusedLocationProviderClient always returns false in onLocationAvailability callback on Sony Xperia Z2. Permissions are granted, location is enabled. In location preferences set up option to use wifi, network and gps. Everything works fine on…

Marriage
- 501
- 3
- 15
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…

CS.SCIENTIST
- 21
- 3
2
votes
0 answers
Android - LocationManager requestLocationUpdates callback doesn't work on Lollipop
I got a problem when using LocationManager requestLocationUpdates on Lollipop device. The LocationListener() callback doesn't get called. Also I've tried to use FusedLocationProviderClient api, but also the callback doesn't work. (All dependency…

Webster
- 1,113
- 2
- 19
- 39
2
votes
3 answers
Get last location from FusedLocation in service
I' trying to getLastLocation() in my Service, witch is starting every minute. As I can see, fusedLocation requires Activity or Executor in .addOnSuccessListener(). How I can get it in Service?
LocationCheckService.class
public class…

Hitrene
- 331
- 1
- 4
- 18
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…

Maximus
- 189
- 1
- 3
- 15
2
votes
0 answers
FusedLocationAPI can not remove location updates through AlarmManager
I have created simple class to get updated location using google's FusedLocationProviderClient. i.e.:
public class LocationProvider extends LocationCallback {...
private static FusedLocationProviderClient mFusedLocationClient;
private…

immodi
- 607
- 1
- 6
- 21
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…

Walter
- 189
- 2
- 16
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);
…

Giulio Bider
- 1,386
- 2
- 10
- 20
2
votes
0 answers
Get High Accuracy Location on Android using fused location
I tried to get current user location on button press and show the address on screen.
I am using google fused location as follow
locationClient = LocationServices.getFusedLocationProviderClient(this)
locationRequest =…

dito cesartista
- 209
- 1
- 10
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…

Abhinav Upadhyay
- 140
- 1
- 14
2
votes
1 answer
Re- JobScheduler combined with FusedLocationProvider Api oftens gives null location value
I have a jobScheduler with fusedLocationApi provider. It works alright but once a while it gives null value for a no. of time (6-7 times in a sequence). I tried onLocationChanged() and LocationServices.FusedLocationApi.requestLocationUpdates(), both…

Amrita Stha
- 2,973
- 3
- 25
- 46
2
votes
1 answer
FusedLocationProviderClient.requestLocationUpdates not getting altitudes
I'm experiencing some strange behavior with our Android app using Fused location Provider Api.
In some devices this api is not returning the altitudes
I can check it on Moto G 2d generation but our users report the same behavior at least on Moto G…

pauminku
- 3,526
- 3
- 22
- 24
2
votes
1 answer
How to handle Google API Client if not having updated Google play services
I am using fused location Google api client to get location,as I am having update device so it is working fine, there may be scenario like customer may not having updated google play services. so what minimum google play services version is required…

Siddharth
- 56
- 3
2
votes
2 answers
Even PRIORITY_HIGH_ACCURACY gives very low accuracy location updates
I'm using FusedLocationAPI to get high accuracy location updates (with 2 second update interval and 5 second fastest interval). It works fine most of the times. But, sometimes it gives accuracy like 1200m.
I understand that in the beginning it can…

wgihan
- 87
- 4
2
votes
1 answer
Battery Optimizations whitelist not preventing Doze from deferring my app
My app sends GPS location data to my server every 15 minutes. This functionality is the central purpose of the app.
However, the GPS logging tapers off when the phone is turned off and not in use. Time between GPS records is 15 minutes for a while,…

paperduck
- 1,175
- 1
- 16
- 26