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

fused location provider provides fake accurate location

I'm using the fused location provider to track the user location on android. Most of the time it works great, the location signals seem correct, but from time to time I receive fake location points which seem accurate (accuracy <= 30) from a distant…
user429400
  • 3,145
  • 12
  • 49
  • 68
2
votes
0 answers

Request location updates in Android with FusedLocationAPI not returning

UPDATE: I'm getting this error, like it's explained in this questions (1 and 2), but according to this answer, this is only an internal log and shouldn't have impact on the functionality V/GoogleSignatureVerifier: com.google.android.gms signature…
2
votes
2 answers

How can I use Fused Location Provider inside a Service class?

I need to get the user's location in the background, so I am trying to use Fused Location Provider inside my Service class. I put the code below inside the onStart() method, but the context MainActivity.getAppContext() is not recognized. What can…
2
votes
1 answer

Fetch offline location using FusedLocationApi

I want to fetch the location using google play services LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient); when GPS/Wifi is turned off. Reading the articles/blogs regarding FusedLocationApi, its mentioned that this API will provide…
2
votes
0 answers

Android GPS location with desired Accuracy

I am using Google Play api to get device location and send it to server periodically (every 10 mins or on location change whichever arises first) via IntentService. I am using LocationRequest.PRIORITY_HIGH_ACCURACY while building LocationRequest…
2
votes
1 answer

Add addGpsStatusListener for the Fused location API

I have added: implements GoogleApiClient.ConnectionCallbacks, LocationListener, GpsStatus.Listener and: mGoogleApiClient = new GoogleApiClient.Builder(context) .addApi(LocationServices.API) .addApi(Wearable.API) …
powder366
  • 4,351
  • 7
  • 47
  • 79
2
votes
1 answer

Fused location API gives highly inaccurate location after closing google maps

Our application uses Google Fused location API to receive location updates every 3 minutes. The location request settings are as follows – Interval – 3min Fastest interval – 1 min Priority - PRIORITY_BALANCED_POWER_ACCURACY In a normal running…
2
votes
0 answers

Polyline draws a line from wrong location

I developing an app that draws a polyline on users movement. For now i got a GoogleMap, and when I launch this app I got a polyline that draws from unknown location to my location. I Just want to start drawing this polyline when user start to move.…
2
votes
1 answer

Why does Android FusedLocationProviderApi requestLocationUpdates send updates with weird keys?

I'm using com.google.android.gms:play-services:7.3.0. This did not happen with 6.5. The documentation says: Location updates are sent with a key of KEY_LOCATION_CHANGED and a Location value on the intent. Well, that much is true. It also sends…
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 …
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 { …
1
vote
3 answers

Create LocationRequest for API lower than 31

I have compileSdkVersion 32 and now I can create LocationRequest only using LocationRequest.Builder. LocationRequest.create() currently unavailable, means I can't even call this deprecated static method. So any suggestions how to create…
Konstantin Konopko
  • 5,229
  • 4
  • 36
  • 62
1
vote
0 answers

Fused Location Provider does not responding

I have tested my app in Moto G3(Android 6), Vivo y19(Android 12), Poco M2 pro(Android 11), oppo A15(Android 10), Nokia 2.1(Android 8) everything works fine. But when it comes to POCO X3(Android 12, MIUI 13.0.1, android security: August 2022) it is…
1
vote
0 answers

Background Service to Loop FusedLocation

I cannot seem to create an infinite loop that runs periodically for a background service and is reliable. The app uses a Service to post a GPS location every 5 seconds using a FusedLocationClient LocationCallback. The functions loop as expected when…
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…