The Fused Location Provider intelligently manages the underlying location technology and gives you the best location according to your needs.
Questions tagged [fusedlocationproviderapi]
436 questions
123
votes
13 answers
Best way to get user GPS location in background in Android
In my android app i want to get user current location every few minute interval and update in to my center server using web service.
Currently i am using Fused Location Provide for get user current location, See link
now i want to know what is the…

Ravi Bhandari
- 4,682
- 8
- 40
- 68
45
votes
1 answer
Android play services 6.5: LocationClient is missing
After updating to Google Play Services 6.5.87 my app was failed to compile because of missing LocationCLient class.
The documentation link is corrupted at the moment (404 Not Found)
How can I fix it?
I want to receive location updates, work with…

Volkman
- 902
- 1
- 8
- 19
44
votes
14 answers
Why is FusedLocationApi.getLastLocation null
I am trying to get location by using FusedLocationApi.getLastLocation and I've got the location permissions in the manifest file:

Can Poyrazoğlu
- 33,241
- 48
- 191
- 389
26
votes
2 answers
Fused Location Provider setsmallestDisplacement doesn't work in Android
Hi I have implemented Fused Location provider Api for getting location updates in a service. I was able to get the onlocationchanged event fired according to the interval set. However when i set the setsmallestDisplacement to 10 metres, the event is…

hemanth kumar
- 3,068
- 10
- 41
- 64
24
votes
2 answers
ACCESS_COARSE_LOCATION permission gives a cell tower precision on Android
I am making some tests with the requestLocationUpdates() function from the FusedLocationApi. I am using the PRIORITY_BALANCED_POWER_ACCURACY. A city block precision is fine for me.
When I request the ACCESS_FINE_LOCATION permission, I get around a…

poiuytrez
- 21,330
- 35
- 113
- 172
19
votes
5 answers
Android: Check if Location Services Enabled using Fused Location Provider
According to the Android documentation:
The Google Location Services API, part of Google Play Services,
provides a more powerful, high-level framework that automatically
handles location providers, user movement, and location accuracy than
…

Josu Garcia de Albizu
- 1,128
- 2
- 12
- 22
16
votes
1 answer
Android app can't access location on emulator using FusedLocationApi
I have an Android app that gets location:
private LocationRequest createLocationRequest() {
LocationRequest mLocationRequest = new LocationRequest();
mLocationRequest.setInterval(120000);
mLocationRequest.setFastestInterval(60000);
…

Can Poyrazoğlu
- 33,241
- 48
- 191
- 389
16
votes
6 answers
Android cannot resolve method requestLocationUpdates FusedLocationProviderAPI
I'm attempting to follow the Android Receiving Location Updates tutorial. The example code is here on Github.
Everything is working except for this line:
LocationServices.FusedLocationApi.requestLocationUpdates(mGoogleApiClient,…

Tom Hammond
- 5,842
- 12
- 52
- 95
15
votes
1 answer
Fused Location Provider: Is there a way to check if a location update failed?
Introduction
In my app I want to get a one-off accurate location of where the user currently is. When I used FusedLocationProviderApi.getLastLocation sometimes this would be null or out of date location because I found out this just gets a cached…

Ersen Osman
- 7,067
- 8
- 47
- 80
15
votes
3 answers
Fused Location Provider not getting location unless GPS is on
So I have implemented the new Fused Location Provider API to get a location of the user but for some reason, I cannot get any location unless the GPS is on. Not always, will users have their GPS on and I would like to not have to ask them to turn…

Georgi Angelov
- 4,338
- 12
- 67
- 96
12
votes
2 answers
I want to get accurate location with google fused location api?
I am using Fused location Api, i am getting the location with approximately 10 meters accuracy. Some times it gives 4 to 8 meters accuracy. I want more accuracy using this fused location Api or with any other way. Is there any way to get location…

Naimatullah
- 121
- 1
- 1
- 4
11
votes
4 answers
Unfortunately, MyApp has stopped - no error logs in logcat
Every once in a while I get:
Unfortunately, MyApp has stopped.
Problem is easy to solve if you have some logs, but in my case logcat has absolutely no message of error (it has normal messages published by my app and other exceptions are shown…

Marian Paździoch
- 8,813
- 10
- 58
- 103
9
votes
2 answers
Fused Location Api setSmallestDisplacement ignored/not working
I am trying to create a service that will receive location updates every x sec and after y distance. I receive updates after x sec but never after y distance. I have tested it multiple times with different values and it seems that…

Anninos Kyriakou
- 205
- 3
- 15
9
votes
1 answer
sending extra to requestLocationUpdates intentService breaks location updates
I'm having trouble sending a string extra with my PendingIntent that I pass to LocationServices.FusedLocationApi.requestLocationUpdates(GoogleApiClient client, LocationRequest request, PendingIntent callbackIntent).
It appears that the username…

techjeffharris
- 392
- 2
- 13
9
votes
1 answer
How can I view a list of monitored Geofences with ADB?
I am debugging a location aware application and I would like to get a list of Geofences that are currently being monitored by the system -- even if I can only see Geofences for my own package(s). The code is using GoogleApiClient and thus…

Bill Mote
- 12,644
- 7
- 58
- 82