Questions tagged [fusedlocationproviderapi]

The Fused Location Provider intelligently manages the underlying location technology and gives you the best location according to your needs.

436 questions
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.requestLocationUpdates() stops interval requests after a while

This question is regarding an Android app I am developing. I am testing on a real phone with Android version 7. I want the FusedLocationApi to request GPS location at 15 minute intervals. When the app is in the foreground and the screen is on, the…
paperduck
  • 1,175
  • 1
  • 16
  • 26
2
votes
1 answer

Cannot resolve symbol 'FusedLocationProviderClient'

I having a errorCannot resolve symbol 'FusedLocationProviderClient' while declaring private FusedLocationProviderClient mFusedLocationClient; The same is asked here Cannot Resolve Symbol: FusedLocationProviderClient. Google play services version…
Siva
  • 1,849
  • 2
  • 13
  • 28
2
votes
1 answer

onLocationChanged never called in FusedLocationApi

There are some other questions on SO about the same problem, but I guess that the answers a bit old and maybe not applicable to my scenario. In the code below, the method onLocationChanged is never called. I also tried to send new Locations from the…
shaft
  • 2,147
  • 2
  • 22
  • 38
2
votes
1 answer

What are the limits placed on location gathering for apps running in the background on Android O devices?

I realize O is in developer preview at this point, but there are significant changes to background location gathering. What are they?
Shailen Tuli
  • 13,815
  • 5
  • 40
  • 51
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

GPS not turning off after FusedLocationProvider request finished

I'm having a problem on a One Plus 3T device which is causing the GPS to stay activity after removeLocationUpdates has been called correctly (waiting for the PendingIntent status to return success, and then disconnecting the API client). The image…
Ryan
  • 1,863
  • 13
  • 20
2
votes
1 answer

java.lang.IllegalStateException: GoogleApiClient is not connected yet

ERROR MESSAGE FATAL EXCEPTION: main java.lang.IllegalStateException: GoogleApiClient is not connected yet. at com.google.android.gms.internal.zzlg.zzb(Unknown Source) at com.google.android.gms.internal.zzli.zzb(Unknown Source) …
2
votes
1 answer

Battery impact of polling for location updates less often?

I've read a lot of conflicting information on this. Suppose I use the Fused Location API in PRIORITY_HIGH_ACCURACY mode, does it make much difference if I set the interval to, say, 10 minutes vs 1 minute? 1 hour vs 10 seconds? If so, how…
2
votes
0 answers

What happens to location updates after Play Services restarts

I have an IntentService that is invoked by the FusedLocationApi every minute to process locations data. private void startLocationUpdates() { PendingIntent pendingIntent = getPendingIntent(); …
2
votes
0 answers

Get the specific category of specific location automatically

I know that by using getPlaceTypes(), I can easily get the type of a place via Google Place API. But does it always give the accurate type? Suppose I want to make an app that will use an intent service to always check my location type; so if I…
2
votes
1 answer

How to get Location updates even when gps is turned off using fused location API?

This question may be asked many time but I couldn't find any solution for it. I need to get the user's location in background for ever 15 min. It works fine when the GPS is turned on but when the GPS is turned off, the app is not getting location…
2
votes
0 answers

FusedLocationProvider asking for Resolution(enable Wifi) when requesting location updates on 3G

I am using Google's FusedLocationProvider API to receive location updates on user's device. I am switching between PRIORITY_HIGH_ACCURACY and PRIORITY_BALANCED_POWER_ACCURACY when device GPS is on/off. //location manager for GPS…
2
votes
0 answers

How to get location if GPS is Off using fused Location API

I am trying to get device lastknownlocation if GPS is Off using Fused API But I am getting null location value. My location class public class FusedLocation implements GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener,…
Anjali Tripathi
  • 1,477
  • 9
  • 28
2
votes
0 answers

Difference between FusedLocationProvider and FusedLocationProviderApi?

FYI, I'm developing an Xposed module. Inspecting Android source code I've found a class named FusedLocationProvider . What's the difference between this Location Provider and the Fused Location Provider in Google Play Services, exposed in interface…