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

location api does not give exact current location sometime in android using google fused api

I have used the following code to get the current location and path the route in google map. The problem i faced is that the current device location is not stable all the time. It shows correct location sometime but shows different location like 1km…
Gokarna pantha
  • 53
  • 1
  • 10
0
votes
2 answers

google play services location api sometimes give wrong location

My app use Google Play service API to get the user location and check if the device is inside or outside a particular area of 50 mt of radius. The app use PRIORITY_HIGH_ACCURACY and a Interval of 1 minute. So I create…
AleCat83
  • 1,443
  • 3
  • 22
  • 41
0
votes
3 answers

android: improving Find Current Location

I want find current user location on android. I use these code: mLocationRequest = LocationRequest.create(); mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY); mLocationRequest.setInterval(1000); // Update location…
partiz
  • 1,206
  • 2
  • 13
  • 34
0
votes
0 answers

Is it possible to change SettingsAPI Dialog box's text color?

I followed this to get the above pop up- link to the code Is there a way to change the text color of Learn more, CANCEL and TURN ON text fields? Something like this-
0
votes
1 answer

Fused Location Provider doesnot give Location Updates on Displacement

I have used Fused Location API to get location updates. I am getting updates while setting LocationRequest based on setTimeInterval. But I need only updates on 10m Movement. So i placed setSmallestDisplacement(10) .But when i put…
user3506595
  • 129
  • 11
0
votes
3 answers

How to Resume LocationServices to request location updates in onResume Method

My app uses Google Maps Api, to display user's current location and seems to be working fine except for two issues: 1 User's location is not being updated in realtime unless app is relaunched. 2 I don't know how to resume…
0
votes
0 answers

How to use FusedLocation API to monitor location updates when app is not active

The FusedLocation API is newer than LocationManager API, but it is not clear to me when to use one vs the other. I want to monitor location changes even when the user is not running the app. I found this nice example using the LocationManager but…
0
votes
0 answers

GPS stops retrieving recent updates

I'm having a problem with a few users that their gps tracking app stops updating their position, and keeps sending old position to our backend. The implementation was based on FusedLocation tutorials, and it works. It is just that, with a few…
0
votes
0 answers

Unexpected behavior - Background location capture using fused location provider

I am trying to use fused location provider to capture location in background every half an hour with PRIORITY_HIGH_ACCURACY. To achieve this, I have used PendingIntent with BroadcastReceiver and requesting for a location update every thirty minutes.…
0
votes
1 answer

Possible to get fresh data (exact current location) using Android's FusedLocationApi?

Let's say I'm using FusedLocationApi's requestLocationUpdates with interval of 5 minutes, so I will have a cached location data that won't be much older than 5 minutes. However when the user presses a button for example, I would like to get the…
Bruce
  • 2,357
  • 5
  • 29
  • 50
0
votes
2 answers

How to check processes and services consuming lots of battery

I have created an app which consuming 48 percent of battery in some device which is highest in power management task, but in some device its 5-6 %, i am running a service in background all the time which fetches the latitude and longitude and send…
Android
  • 47
  • 2
  • 5
0
votes
1 answer

How to update time interval in fused location service depending on application being in foreground/background?

How to have two different location update interval in Fused location when app is in foreground (For example: 5 sec) and when app is in background (For example 5 minute)?
0
votes
1 answer

Lat-long get changed every time i fetch lat-long using fused location api even when i am still at same position

i am fetching my current location lat-long using android used location api after every 30 sec but lat-long get changed every time even when i am at the same position. So please tell me how resolve this issue i wanna get accurate location and same…
Edward Collins
  • 353
  • 3
  • 13
0
votes
1 answer

Remove location updates immediately

Im using fused location API And i have 2 intent services: The first intent service is registering GoogleApiClient Object. The second intent service is getting location updates frequently and does not using GoogleApiClient Object. I want to call :…
WoW
  • 151
  • 2
  • 10
0
votes
1 answer

Last known location too old

I'm new with the Google's Fused Location API and I would like to know if there is any way of requesting a location update in any given time? I know about setInterval() and setFastestInterval() but For example: If the user presses a button, can I…
Sanaco
  • 25
  • 6
1 2 3
21
22