Top "Android-location" questions

android-location refers to the location API provided by the Android framework.

NullpointerException when calling getSystemService(Context.LOCATION_SERVICE) and onLocationChanged not called

I am trying to create a background service that updates the current gps position. I am getting a NullPointerException at …

android android-maps android-location
Best Practice to report user location continuously

I'm designing an application where application in server side need to be continuously aware of user location. I'm thinking to …

android android-service android-location
fusedLocationProviderClient.lastLocation.addOnSuccessListener always null

I just updated my Location API to use FusedLocationProviderClient but I am having this issue, when I turn off and …

android android-location
Calculate distance between two locations in metre

I have two locations and I want to calculate distance in meter. I wrote some code but it's not working …

android gps android-location android-gps
GeoCoder Service not Available

GeoCoder Service not Available I'm using the GeoCoder to get an AddressLocation. Unfortunately the method fires an IOException saying: "Service …

android geocoding google-play-services android-location google-geocoder
PRIORITY_LOW_POWER vs PRIORITY_BALANCED_POWER_ACCURACY for google play service v2

I'm wondering for the fused location, does any of the above use a combination of gps + wifi network together? what …

android google-play-services android-location
Getting Location from coordinates

I have given coordinates for latitude and longitude, and I want make a location object with those.There isn't a …

android android-location
Android, Location Request, set expiration duration doesn't work

I'm using new API of location which had been introduced in I/O 2013. It works fine and I have no …

android gps android-location
How does ACCESS_BACKGROUND_LOCATION introduced in Android Q affect Geofence APIs?

In order to use the Geofence API the user has to give the app ACCESS_FINE_LOCATION. This location is …

android android-location android-geofence android-10.0
LocationClient doesn't give callback when screen light goes off but my WakefulThread is running flawlessly as expected

To retrieve fused location in background, I have created a library which is very similar to cwac-locpoll library created by …

android android-location locationlistener