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
1
vote
2 answers

onLocationChanged gets called multiple times on start of application

I have written following service,The idea is to send User location to server on application launch and when user travels more than 500m, The problem is that on launch it calls onLocationChanged 3 times. I am unable to understand that from where…
1
vote
0 answers

The Geo-Cordinates getting is Very Far from previous one

In my application there is provision to track how much distance a person is travelled.There is a Service class for getting the current lat and long perodically.Some times the points getting is fine.Othertimes it is not.I started from a point and…
Noufal
  • 439
  • 1
  • 13
  • 35
1
vote
1 answer

Use fusedlocationapi to get location without requesting for location updates after a time interval

I am using google's fusedlocationapi in android for getting user's current latitude and longitude, now according to my use case i only want to get user's current location only when user clicks on a button, now i thought that instead of requesting…
1
vote
3 answers

Android Service not updating location

I need to update fused location every 1 min and on each 5 meter displacement (I know its bad practice but for the sake of testing and showing in Log ) and i start service by button Pressed as soon as button pressed i got location in logcat but only…
androidXP
  • 1,692
  • 3
  • 27
  • 58
1
vote
4 answers

Android: Google Fused Location doesn't work while location is turned off

getLastLocation() returns NULL while phone location is Off on my 6.0 Nexus 7 tablet, but it works without GPS on another device. Why is it so and any way to solve it? I want to keep GPS off and just use network to get location. Below is the class I…
1
vote
2 answers

Fake GPS locations persist after disabling

On our Android app we need to detect when users have been providing us with fake locations. Once we disable the fake location app ("Fake GPS"), the Fused Location Provider keeps sending us the old location, but without the mock location key on…
1
vote
1 answer

FusedLocation GoogleApi - Listener must not be null (Xamarin.Android)

I am getting the following: Java.Lang.NullPointerException: Listener must not be null. Can't seem to get away with it. I have exhausted all possible solutions I could find. using System; using Android.App; using Android.Gms.Location; using…
Gustavo Baiocchi Costa
  • 1,379
  • 3
  • 16
  • 34
1
vote
1 answer

No location is ever retrieved from FusedLocationProviderApi

I have the following simple class, which is my main activity. I essentially followed this verbatim from the Android docs. I am running this from my phone through Android Studio. The problem I am running into is I absolutely never get a legitimate…
zebra
  • 6,373
  • 20
  • 58
  • 67
1
vote
1 answer

How Facebook find a solution for location accuracy and battery power?

Hello everyone I have a question an which I did not find answer.Do someone know how some big applications (e.g Facebook) have resolved problems between accuracy of location and battery power? Do they use Fused Location Provider with High-accuracy or…
1
vote
1 answer

GeoFencing Best Stratigies

I am working on Location and Geo Fencing. But I have seen couple of problems. I think that I have missing some thing but indeed I have many confusions regarding Geo Fencing and Location services Such as Fused Location API. What I am doing According…
1
vote
0 answers

Android fused location provider : OnLocationChange never called

I have a big problem with fused location provider api , all the methods I ovveride (for example in onConnected I get the last location known) are working except OnLocation change I don't know really what's the problem because I use the same code in…
1
vote
0 answers

Google api client disconnect when the app destroyed

In my project i create background service which is get location using google api client. my problem is when app destroyed,service is running but google api client automatically disconnected and cannot get lat-lang. i don't want lost a…
1
vote
1 answer

Location Service GPS, Set High Priority

I have an Android app which uses Background Service which works in foreground mode and is sticky. This service continuously polls for GPS location every 15 minutes. After around 1 hour of time (this is random), the service stops giving the location.…
1
vote
0 answers

How to implement Kalman filter in Android with latitude and longitude?

Please help me with implementing Kalman Filter in my Android Code having current latitude, longitude, accuracy, timestamp and changed latitude, longitude on onLocationChanged. If somebody could me help me with proper source code, it would be really…
Sakshi Gupta
  • 116
  • 11
1
vote
0 answers

Calculating distance between to points - Android

I wrote a program that calculates the distance between me and my place of work. The algorith is quite simple. I get the latitude and longitude of my position,and store it in a Location object. Then I create another Location object,where it store the…
Theo
  • 3,099
  • 12
  • 53
  • 94