After starting the listener using the following code, it works fine.
LocationManager locationManager =(LocationManager) getSystemService(Context.LOCATION_SERVICE); locationManager.requestLocationUpdates( LocationManager.GPS_PROVIDER, WLConstants.DELAY_HOUR, gpsl .getMinDistance(), gpsl);
After a while I will stop the listener using the following code
locationManager.removeUpdates(this);
but the problem is that he is still looking for my gps any solution ??? how to stop gps?
android gps
d-man
source share