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
0 answers

Fused Location Provider issues

I am using Fused Location Api for getting the latitude and longitude.It's mentioned in the documents that it uses GPS, Wifi and network(Cell) to return the most accurate location of the user. I've a couple of questions here: 1)I've noticed that if I…
Amrita Stha
  • 2,973
  • 3
  • 25
  • 46
0
votes
0 answers

Location returning null sometime after Location Service is turned on Android

I am trying to get Latitude and Longitude from the device using FusedLocationApi . If the location is turned off I am asking the user to turn on the location service through a dialog. Once the location service is turned on sometime I am getting the…
sagar suri
  • 4,351
  • 12
  • 59
  • 122
0
votes
1 answer

FusedLocation Pending Intent sometimes invoked without location

I have an Intent Service that is invoked by FusedLocationApi every minute or so to monitor locations periodically via pending . @Override protected void onHandleIntent(Intent intent) { if (intent != null && LocationResult.hasResult(intent))…
Ishaan Garg
  • 3,014
  • 3
  • 25
  • 28
0
votes
2 answers

List of all my FusedLocation requests

I am using the code below to register for location updates in one activity, but how can I check if my app has registered this request (or query my active location requests) before and is still waiting for location responses, so I don't make…
0
votes
1 answer

Application Crash on API 23 during use of FusedLocationApi

Actually i created a application to show the nearest Fuel station, so i use the FusedLocationApi for that, and in the code first i check the use location is enabled or not, If no than i build GoogleClient and call setingsrequest() function and if…
techDigi
  • 251
  • 3
  • 18
0
votes
1 answer

Android some time my code give not accurate distance in android?

I have android app in which i am getting distance travelled speed and time some time the app works fine but sometime the app does not give accurate result i am using fused API in locationService class. any suggestions are welcomed. Thanks
0
votes
2 answers

Fused location Returns NULL

I made a chat application using firebase between two mobile devices then i created a button to send the location of the device using Google API client but it keeps returning null though i tried it in another activity and it worked fine . ChatRoom…
0
votes
1 answer

Using PendingIntent() to request location updates when running on an O device

Using PendingIntent.getService(...) has been the common way to request location updates. Can this still be used for apps running on O devices to receive background location updates?
0
votes
1 answer

How to send LocationResult with last location to PendingIntent

How can I send a PendingIntent with a LocationResult? I wanted to use same PendingIntent I setup for receiving location changes to also receive the last location. See the last lines in the code: // Create pending intent for a service which received…
0
votes
1 answer

setMockMode doesn't work - FusedLocationApi

I am setting mock location (using FusedLocationApi) for testing my application based on Maps but it doesn't seem to work. LocationServices.FusedLocationApi.setMockMode(mGoogleApiClient, true); Location location = new Location("fused"); …
0
votes
1 answer

How do I create a button who will fetch the user's location without listeners

I'm trying to use the user's gps location in my app. The idea is to have a button that will fetch his current location and display it on a map. I don't want to have a real time update of his position. His location will be updated ONLY when he…
Etienne Berube
  • 547
  • 1
  • 7
  • 21
0
votes
3 answers

onLocationChanged() not called

I am trying to make an app which needs to use GPS. So I have written a MainActivity which start a service. This service get the location using the Fused Location Provider. So my point is to get location periodically, son I use…
ilpadrino
  • 13
  • 6
0
votes
1 answer

Why FusedLocationApi (onLocationChanged) is not called in API > 23?

I have a service that get locations ,this service good work on API < 23 but on API > 23 don't get any location with Network .It just get me location with gps . public class TrackLocationService extends Service implements…
0
votes
1 answer

Android - Fused API getSpeed()

By using fused API I'm getting speed as 3.0 something. But I am in the same place and am not traveling anywhere, so from where is the speed coming from? I am testing with a Samsung device and a Motorola device. The problem is appearing on the…
0
votes
1 answer

Having issues testing location services. I can't make them NOT to work

I implemented getting location updates using FusedLocationProviderApi. I need to track device location in background, when app is not running. I followed the tutorials, I have a Service where I call requestLocationUpdates with an intent which starts…
Don Box
  • 3,166
  • 3
  • 26
  • 55