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
0
votes
1 answer

Duplicate data when using PendingIntent

I am listening to DetectedActivity, FusedLocation, GoogleFit etc. updates using a pending intent. I pass over PendingIntent.FLAG_UPDATE_CURRENT when calling: pendingIntent = PendingIntent.getService(this, 12, intentService,…
0
votes
0 answers

How to Implement Fused Location in Firebase Recycler Adapter Database UI?

I have a problem for implementing fused location which method is used to get current location for the device on Firebase Database UI but It doesn't work because there was a red line that noticed Cannot resolve method 'addOnSuccessListener(anonymous…
0
votes
2 answers

Android Fused Location Update

I am developing an android application and I am fetching device current location by Fused Location. I am checking if a user has grant permission or not if yes I am fetching location but If a user has not granted the permission I am opening…
Harsh Shah
  • 2,162
  • 2
  • 19
  • 39
0
votes
2 answers

Getting issue while retrieve location with different location request mode

For retrieve location i have used GoogleAPIClient with FusedLocationProvider API. These functions are in onCreate() method. createLocationRequest(); mGoogleApiClient = new GoogleApiClient.Builder(this) .addApi(LocationServices.API) …
0
votes
2 answers

Request location updates from background on Android?

I would like to implement a tracking app which requests the current user position every 3 minutes. The app should run in background (also when the app is closed). Currently I am trying to use a WorkManager for it. Unfortunately I do not get the GPS…
0
votes
0 answers

Can we set OR condition for fused location api - for either time interval or displacement

Can we get location (Fused Location API) based on either time interval or displacement, whatever happens first ? Or only one condition can be applied at a time ?
0
votes
0 answers

Draw route between current location and a location fetched from server

I am new in android. I fetched my current location using FusedLocationProviderClient and i have also fetched location from sever. I want to draw a route and navigation as well from my current location and fetched location as well.…
0
votes
2 answers

Location Manager always returns false for gps enabled check in oreo+ devices in android

LocationManager is always returning false in oreo and above devices when i check if gps is on or not, even when i turn it on, it still returns false. How do i check if gps is on in oreo and and above devices? Heres my code: Location manager; …
0
votes
0 answers

Android GPS location not accurate

I am having an issue with an Android app I am developing. The application runs a countdown timer and sends a text message when the timer reaches zero. At 9 seconds, The application is supposed to get the location of the phone. When the timer…
0
votes
0 answers

Fused Location provider providing "accurate" locations but reporting very bad accuracy values

I'm developing an Android location tracking APP. My problem is, although the fused location provider providing locations that are accurate to 10,20,30 meters (I can verify that by looking at a map and the latitude, longitude and timestamp values),…
Poider12
  • 223
  • 3
  • 15
0
votes
1 answer

Location is fetching when the app is killed and in background using FusedLocationProviderClient with pending Intent but in Irregular times

I am using FusedLocationProviderClient with pending intent. I am getting the location when the app is active. But while the app goes into background or app is killed, I am getting the location in irregular intervals say 2mins, 3 mins, 10 mins…
0
votes
1 answer

How to use Fuse android location provider in a service?

I am trying to use Fuse provider in a service in android to get location in background. private void init() { context = this; mFusedLocationClient = LocationServices.getFusedLocationProviderClient(this); mSettingsClient =…
Hossein Mansouri
  • 752
  • 1
  • 13
  • 29
0
votes
0 answers

FusedLocation Longitude Issue

It's strange how I get a totally invalid longitude from using Fused Location API. Understand that longitude ranges from 0 - 180, It's funny how I receive 189 from the API. Here is an image of the Location Logs with Invalid Longitude Can anyone tell…
0
votes
1 answer

Why requestLocationUpdates fire immediatly onReceive?

When i execute requestLocationUpdates like this : FusedLocationProviderClient fusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(context); LocationRequest locationRequest = new…
0
votes
1 answer

Oreo: how to catch location update from the background?

I migrate my app to oreo (as it's requiered by google play now), and i have now an error when i start my phone : Not allowed to start service Intent My app is listening in background any location update and send periodically those grabbed…