I want to get the exact location from NETWORK_PROVIDER so that the GPS shuts off to save battery. This seems impossible because the android, when ACCESS_FINE_LOCATION specified, turns on the GPS, even if the location is not requested by GPS_PROVIDER.
I added:
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
in the manifest. I needed this to avoid the android messing up the exact position.
I registered updates only with NETWORK_PROVIDER , not GPS_PROVIDER :
myLocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 60000, 0, locationListener);
GPS turns on anyway. How can I avoid this (without forcing the user to turn off the GPS, which does work, but is undesirable)?
source share