mendhak / gpslogger

:satellite: Lightweight GPS Logging Application For Android.
https://gpslogger.app
Other
2k stars 609 forks source link

I adjust interval 1 second ,why it does not work #1097

Open EmptyPages opened 1 year ago

EmptyPages commented 1 year ago

i called the method passiveLocationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER, 1000, 0, passiveLocationListener); towerLocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 1000, 0, towerLocationListener); gpsLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000, 0, gnssLocationListener); moreover i called the mehod PreferenceHelper.getInstance().setMinimumLoggingInterval(1);

but Android Studio log show this, interval value about 5 socond , it is different value of different device image

mendhak commented 1 year ago

That might be normal if the provider is being turned off between fixes, it takes a few seconds to set up the alarm, receive the alarm, start the provider(s), then wait for a fix. You could try the "Keep GPS on between fixes" option and then the provider should stay on. Then the only delay becomes the alarm being set up and received.