FAQ Database Discussion Community
android,android-location,fusedlocationproviderapi
I have a problem coming along with Android Fused Location API. I have an IntentListener service that I need to receive locations periodically. I create and connect GoogleApiClient successfully, then I request to receive location updates through PendingIntent, but every time I call GeofencingEvent.getTriggeringLocation the return value is always null....
android,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, mLocationRequest, this); It's throwing a cannot resolve method requestLocationUpdates error. I don't see anything in the documentation, but I'm pretty new to Android so might...
android,fusedlocationproviderapi
I'm developing an application that must track user location and send it to a remote server. I know there's already a ton of other questions here about this, but I was unable to find exactly what I need. Basically I'm using FusedLocationProviderApi to receive location updates. It's really useful and...
android,permissions,gps,android-location,fusedlocationproviderapi
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 100m precision which is great with GPS off. As I do not need a GPS...
android,gps,fusedlocationproviderapi
I am writing a simple Android application that captures a user's location. I am using the FusedLocationAPI to provide the position. mLocationRequest = LocationRequest.create() .setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY) .setInterval(5000) .setFastestInterval(5000); When the user presses a button, the app will first check the last known location. If this is less than one minute old...
android,fusedlocationproviderapi
aAccording to this: https://developers.google.com/android/reference/com/google/android/gms/location/SettingsApi You can check if location requirements are met and show a dialog if not, using startResolutionForResult(). In that dialog, you can choose "ok", "not this time" or "never". Is it possible to disable that "never" option? Google Maps official app has that option disabled....
android,google-api-client,fusedlocationproviderapi
I have a MapView in a fragment, and I'm having two problems that I can't seem to find solutions for. I've searched but I don't see anyone else having these problems. For reference, I am mainly following this tutorial on the developer pages. This is my fragment: public class MapFragment...
android,gps,location,location-provider,fusedlocationproviderapi
I have a background service which should track the user movement with his car, and send the data to my server. I have two variables for sending the location, either 60 seconds have passed or the user has moved 100 meters. On my service here is how I start listening...
android,gps,location-provider,fusedlocationproviderapi
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 best way to...
android,fusedlocationproviderapi
Fused Location Api when the google api client get Connected // public void onconnected() { LocationServices.FusedLocationApi .requestLocationUpdates(mGoogleApiClient, mLocationRequest, this); } but suppose due to no network ,no wifi and no gps the client keeps on checking for location. so is there any method by which i could terminate it...if onlocationchanged...
android,location,alarmmanager,periodic-task,fusedlocationproviderapi
Android programming is a brand new thing to me, i've been playing with android's location and i have a same issue, im going to send a periodic location updates to a server in background and i'm using the AlarmManager/LocationManager approach, set an alarmManager with a defined Interval then when the...
android,fusedlocationproviderapi
I have used the Fused Location Provider API to get user's current location.Things work well when the user has turned location on. But I want to provide a message to the user if he has turned location off. When location is turned off, the requestLocationUpdates does not call onLocationChanged method...