Is there an alternative way to change GPS Delay while its running?
I was hoping i can change it without stopping it?
My first thought was: why throttle incoming readings? Most consumer GPS give one reading per second, and so:
- MinTime < 1000 unlikely to make any difference, but I can see that it is a useful protection against being overloaded by future high-rate GPS
- MinTime > 1000 means that you might be missing out on readings that have been done anyway;
why throw away free information?
If your app is at risk of overload by GPS readings at 1 Hz, then perhaps you are better doing the filtering yourself - presumably your custom filtering can be made to better fit your use case and requirements better than the GPS.Start(time, distance) default. Eg, if you are starved for processing capacity, then you could use a simpler-but-not-as-accurate method for calculating distance than the default filter, which probably involves a trig function or two so that it is unarguably accurate.
My second thought is from this post:
Android Question: GPS start parameters
where, in the absence of good reason for doing otherwise, probably best to keep to the advice:
You should not call GPS.Start multiple times without stopping the GPS (as will happen if it takes longer than one minute to get a fix).