gpslogger icon indicating copy to clipboard operation
gpslogger copied to clipboard

I adjust interval 1 second ,why it does not work

Open EmptyPages opened this issue 1 year ago • 1 comments

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

EmptyPages avatar Oct 17 '23 05:10 EmptyPages

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.

mendhak avatar Oct 22 '23 08:10 mendhak