Questions tagged [fusedlocationproviderapi]

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

436 questions
1
vote
0 answers

FusedLocationProvider broken?

I have a FusedLocationProviderClient that requests locations every 2 minutes. We've had the issue for ages now that in a certain circumstance users would not receive location updates and due to how we handled it in the app, we effectively locked the…
1
vote
1 answer

Why fusedLocationProviderClient.getLastLocation never call OnSuccessListener?

On kitkat, when i do fusedLocationProviderClient.getLastLocation() .addOnSuccessListener(new OnSuccessListener() { @Override public void onSuccess(Location location) { if (location == null) { Log.w(TAG,…
1
vote
0 answers

FusedLocationProviderClient and GpsStatus suddenly stopped working

I am using FusedLocationproviderClient to get my current location and GpsStatus.Listener to get the Gps Status using this code: @Override public void onGpsStatusChanged(int i) { switch (i){ case GpsStatus.GPS_EVENT_SATELLITE_STATUS: …
1
vote
0 answers

Does FusedLocation updates work as background service?

I have a class for using FusedLocationApi to send the location of user frequently to the server. All methods for getting location updates and communicating with server are set in this class except that when I want to run this class, I call a…
Ali Sheikhpour
  • 10,475
  • 5
  • 41
  • 82
1
vote
0 answers

FusedLocationProviderClient api exception while requisition for location updates coordinates

I am requesting location updates from the FusedLocationApi after granting run time permissions. So when checking for location setting in mSettingsClient?.checkLocationSettings(mLocationSettingsRequest) it always fails and goes to…
1
vote
0 answers

LocationSettingsRequest does not show permission check dialog

I'm using the FusedLocationProviderClient in a project. At the onCreate method I've got this snippet being called: private void setupFusedLocationProvider() { LocationSettingsRequest.Builder builder = new LocationSettingsRequest.Builder(); …
1
vote
2 answers

Get Location Update when app is in background

I am trying to create a service which gives location updates when app is in background specially for Android 8 and above as they have optimized the background service. I read some of the answers on the stackOverflow and Google API doc, they have…
gaurav tiwari
  • 1,093
  • 1
  • 9
  • 28
1
vote
0 answers

Receive location updates even when phone is locked?

I have been trying to receive location updates when my phone is locked I am using a service that is launched by my main activity. I receive location updates when the application is open just fine but when locking the phone the service continues to…
1
vote
1 answer

Now that FusedLocationApi is deprecated how can i implement FusedLocationProvideClient when i also have location listener?

I'm building a class that tracks orders origin to deliver packages, im getting an error message that states that FusedLocationProviderApi is deprecated and seems now i have to use FusedLocationProviderClient instead, when i applied…
1
vote
0 answers

Wierd and very unexpected issue with location.getAccuracy()

Problem: I have tried using the new FusedLocationProviderClient and the deprecated FusedLocationApi to receive location updates on my app using a Sony Xperia Z2 and Huawei Honor 8. Everything works fine initialy. However it seems that after x…
1
vote
1 answer

Should i need to unregister locationcallback for fusedLocationProviderClient?

i am trying to get user's location in background using service. I am using FusedLocationProviderClient for complete this task and i am doin all this thing in my service class. I am providing two button named "Yes" and "No" to user. When user press…
Jaydip Kalkani
  • 2,493
  • 6
  • 24
  • 56
1
vote
2 answers

Why Memory Leak is not detected with LeakCanary while HPROF file displays activites with leaks

I think code for FusedLocationProvider api leaks as i asked in this question. I tried using to detect memory leak with LeakCanary but i do not get any warnings for memory leak after i rotate my phone, also tried with a tablet. Code for setting…
Thracian
  • 43,021
  • 16
  • 133
  • 222
1
vote
0 answers

Android 6.0.1 Not getting Location after getting permission at run time

I am working on google maps and Getting location using Fused Location API. Every thing is working fine as expected. I have a device having version 6.0 My code was working good. But now after software updates And I think its now 6.0.1, my code is not…
1
vote
1 answer

Fused Location not Working Android

I am trying to write an app that gets the current location and displays the latitude and longitude realtime. However, when I run this app, the gps doesn't seem to search for a location and try to get a fix. I don't know why this is happening. Have I…
speedster01
  • 433
  • 3
  • 19
1
vote
1 answer

FusedLocationAPI in Background Service

I'm trying to use FusedLocation API in a Background service. I'm getting error on :- LocationServices.FusedLocationApi.requestLocationUpdates(mGoogleAPIClient, mLocationRequest, this); asking me to cast the 3rd parameter into (cast to…
S.M
  • 601
  • 7
  • 17