Top "Locationmanager" questions

The LocationManager class in Android provides access to the system location services.

How does getSystemService() work exactly?

At first glance in the code below the mLocationManager object should go out of scope after onCreate(...) is finished, and …

android locationmanager
Getting user location every n minutes after app goes to background

I am trying to implement the suggestions given in this post. Unfortunately the steps are not clear to me. I …

ios objective-c iphone background locationmanager
GPS Android - get positioning only once

Is there a way to access the GPS once instead of having a looper that constantly checks for location updates? …

java android gps locationmanager
How to get a reference to LocationManager inside a Fragment

I have a class that extends Fragment and implements LocationListener. When I write LocationManager myLocalManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE); …

android fragment locationmanager
Androids onStatusChanged not working

I'm trying to get notifications if the status of GPS_PROVIDER changes. I found the following code here (http://hejp.…

android gps location locationmanager locationlistener
Getting the current GPS location on Android

I'm trying to get the user's current location via GPS capability, Wrote a simple class that implements LocationListener public class …

java android gps locationmanager locationlistener
NETWORK_PROVIDER not providing updated locations

LocationManager locationManager = (LocationManager)getApp().getSystemService(Context.LOCATION_SERVICE); //getApp() returns my Application object locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER , 1, 1, this); locationManager.…

android geolocation locationmanager
Android LocationManager Criteria

I need to receive location changes both from Network and GPS providers. If GPS provider not avaliable or has not …

android location criteria locationmanager
How does getAltitude() of Android GPS Location Works

HI I tried to implement a simple GPS tracker. Therefore is used lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE); lm.requestLocationUpdates(…

android gps locationmanager wgs84
Should I use android LocationManager.getBestProvider every time I ask for location updates?

I'm using Google APIs and the MapActivity, MapView etc.. When I need to get my current location I use this …

android android-mapview locationmanager