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

Android - Not Receiving Location object in IntentService - using LocationServices FusedLocationApi requestLocationUpdates Using pending Intents

I am trying to fetch locations, specially when app is in background using "LocationServices FusedLocationApi requestLocationUpdate - Using pending intents". I am calling an IntentService class in this pending intent and its working just perfectly…
Aashish
  • 81
  • 2
  • 5
1
vote
0 answers

Fix location marker jumps while not moving

I'm working with Androids FusedLocationApi to receive periodically location updates and display the current location on GoogleMaps. I know that the accuracy can be inaccurate from time to time and thus make big sidesteps on my way down the street.…
1
vote
2 answers

Android Fused location api's, provides wrong location update when i am at home and latch to my WiFi network

I have made an application that gets location update after 10 seconds, it is working very fine when i am in office,on road etc. but when i am in home and connected to my WiFi network then, I in the onLocationChanged(Location location) method i got…
1
vote
3 answers

Fused Location Provider - location updates by displacement not working

I have an android application which will track location from background.i am using fused location api with following configuration mLocationRequest = new LocationRequest(); mLocationRequest.setSmallestDisplacement(100); …
1
vote
1 answer

Location listener have problems to works in some devices and problems to migrate to FusedLocationListener

I´ve the following code that get current location o device: public class MapPlace extends AppCompatActivity implements OnMapReadyCallback, GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener, LocationListener { …
Rene Limon
  • 614
  • 4
  • 16
  • 34
1
vote
3 answers

Change fuse location setting while service is running

Hi I am integrating location service in my application. And for that I am using Google's fuse location service. My implementation is as follows : public class LocationNotifyService extends Service implements LocationListener, …
1
vote
1 answer

Change Fused Location priority during runtime

I have two intent services: 1. receives location updates in the background using Fused Location API. 2. Receives Activity Recognition in the background using Activity Recognition API. whenever i detect that the user is standing still i want to be…
WoW
  • 151
  • 2
  • 10
1
vote
1 answer

Bad Accuracy in Fused Location Api

I'm trying to do a "tracking" app in Android. I'm using the Fused Location Api and, like in many different sites has been said, I'm filtering the locations by its accuracy. public void onLocationChanged(Location location) { if…
msfogg
  • 33
  • 5
1
vote
1 answer

Google api client parameter is required in android

The below code am using to get current location from another fragment. But am getting an error in log as Google "Google api client parameter is required in android". This is crashing my App, so do anybody knew whats the exact issue is and how to…
1
vote
0 answers

How to switch LocationRequest priority dynamically?

I'm newbie with Google's Fused Location API and I need my app to switch from PRIORITY_HIGH_ACCURACY to PRIORITY_BALANCED_POWER_ACCURACY, for example, when the device is stationary to conserve battery, and vice versa. Is that possible? Thanks in…
Sanaco
  • 25
  • 6
1
vote
3 answers

Genymotion's locationing requesting the locations too fast

I made a simple location service using Fused location, i test with a real device and with Genymotion's android virtual device. The iterval for getting the locations are 5 seconds. On a real device it is works nicely, the interval is almost exactly 5…
Adam Varhegyi
  • 11,307
  • 33
  • 124
  • 222
1
vote
1 answer

Prevent user to change GPS status Fused Location API

I'm using the Google API (Fuse Location Provider) to track a device's location but I need to prevent the user from disabling the GPS. I read a lot of answers but all I've found is: No, can't do, rooting the device or bug exploits. A friend just…
Sanaco
  • 25
  • 6
0
votes
0 answers

Is it possible to determine the user's location using Bluetooth (or BLE)? (Android, Kotlin)

I want find nearby devices thought the Bluetooth and then determine my position (latitude, longitude and altitude). How can I did it, could you help me, please? Right now I use FusedLocationProviderClient for this, but I want to implement this logic…
0
votes
1 answer

How to get the onLocationResult be triggered all the 30m of displacement in a LocationRequest with the locationCallback?

I don't understand, the Interval in milliseconds works well, but the minimum distance doesn't work. How to get the onLocationResult be triggered all the 30m of displacement in a LocationRequest with the locationCallback ? if (locationRequest ==…
ΩlostA
  • 2,501
  • 5
  • 27
  • 63
0
votes
0 answers

Getting 0.0 values for latitude and longitude with FusedLocation (but not always)

I need to get latitude and longitude from an RecyclerView adapter. Each item has a camera, which when is clicked, should get and save location. Each item can be clicked on different locations. I use this Service to get location, but the problem is…
Nelson Lopes
  • 117
  • 2
  • 13