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

Re- JobScheduler combined with FusedLocationProvider Api oftens gives null location value

I have a jobScheduler with fusedLocationApi provider. It works alright but once a while it gives null value for a no. of time (6-7 times in a sequence). I tried onLocationChanged() and LocationServices.FusedLocationApi.requestLocationUpdates(), both…
Amrita Stha
  • 2,973
  • 3
  • 25
  • 46
2
votes
1 answer

How to handle Google API Client if not having updated Google play services

I am using fused location Google api client to get location,as I am having update device so it is working fine, there may be scenario like customer may not having updated google play services. so what minimum google play services version is required…
2
votes
2 answers

wait till the GPS is enabled before getting the lat and long value in FusedLocationAPI

I am trying to get current location using FusedLocationAPI in my application. It works just fine in both android API>23 and <23. The issue is in case of GPS is not enabled, the app prompts the user to enable the GPS and after that the location…
Animesh Jena
  • 1,541
  • 1
  • 25
  • 44
2
votes
2 answers

Even PRIORITY_HIGH_ACCURACY gives very low accuracy location updates

I'm using FusedLocationAPI to get high accuracy location updates (with 2 second update interval and 5 second fastest interval). It works fine most of the times. But, sometimes it gives accuracy like 1200m. I understand that in the beginning it can…
2
votes
3 answers

Fused location provider with JobScheduler

I have a fused location provider code in MainActivity class providing latitude and longitude values, which is passed to JobService class using persistableBundle. It works fine when the user is using the app (ie. app is in foreground). As soon as the…
2
votes
1 answer

FusedLocationApi.getLastLocation is always null, even onCreated()

I'm asking about receiving FINE and COARSE permissions successfully. Then building GoogleAPIClient and creating LocationRequest but then FusedLocationApi.getLastLocation it keeps on returning null. I am aware that the connection should be…
2
votes
1 answer

Geofence Transitions is not triggered when application is on background

I'm trying to work with geofences in my application. So far I have succeeded and it works perfectly when the application is in foreground. I'm checking with Android Emulator which have google play services. To check this I'm setting the location…
2
votes
2 answers

Fused Location Provider - Non stationary wifi

I am working on an application with a requirement to track the current location, rather precisely over a long period of time. I decided to use the Fused Location Provider API for that purpose since it is designed for battery saving and…
2
votes
0 answers

My parameters are not working in requestLocationUpdates

I am trying to make a listener for LocationUpdates and when I am using both developer/androids tutorial and the tutorial I find on the web the method requestLocationUpdates() is used with googleClientApi, locationRequest and "this" as a third…
bajen micke
  • 309
  • 1
  • 7
  • 18
2
votes
1 answer

Enabled/disabled listener using FusedLocationApi?

The regular Android (non-Fused) LocationListener https://developer.android.com/reference/android/location/LocationListener.html has the methods onProviderEnabled and onProviderDisabled, so that you can listen for when the user turns off/on the GPS.…
2
votes
0 answers

Mock location Check failed with "Fake GPS Go"

I am using the location service (GoogleApiClient) in my application and I have to check the received location is mock or not. I am using the location.isFromMockProvider() for checking, and it was working fine for higher version of devices with all…
Shafi
  • 211
  • 4
  • 13
2
votes
3 answers

How to optimise battery with FUSED LOCATION API - Android

Hi I am facing below issue/problem with location API in android Battery consumption is high as 30% - 40%, which is causing lot of battery drain. Location icon in status bar is always ON even when app is closed and when app is uninstalled it goes…
2
votes
0 answers

unable to get current location using FusedLocationApi without Gps

I am trying to get users current location using FusedLocationApi using the following code. I am following the guide provided here: https://developer.android.com/training/location/retrieve-current.html I have tried this so far: package…
Abhishek Jha
  • 167
  • 4
  • 15
2
votes
1 answer

Android Fused Location API gives inaccurate Location in onLocationChanged

I am struggling a little here, I am using Fused API for getting location updates. My intention is to draw a path on Map when user walks. I have implemented that as follows : @Override public View onCreateView(LayoutInflater inflater,…
Sandip Fichadiya
  • 3,430
  • 2
  • 21
  • 47
2
votes
0 answers

Android Fused Location API provides strange results

I'm developing an android app and getting pretty strange results with the new Google Fused Location API. I'm currently inside a building and Google maps and my application show that I'm ~200 meters away from my real location. However, I can see…