I'm back now. Tried for 2 days to implement vector drawing in opengl using the source data, but kept being stupid, so giving up until I have some more free time.
I would recommend the following changes to SatNavActivity onLocationChanged():
The first line should be just
<pre>
if (newLocation != null) {
</pre>
and then the line
<pre>
if (this.routeOverlay != null && this.autoFollowing && this.mOsmv.getZoomLevel()>14) {
</pre>
should actually have a check for accuracy instead:
that means if the accuracy is less than 20m, dont try calculating a new route overlay.
Personally, in terms of the two location providers, I fully agree that when the GPS location provider is active, the network provider should be immediately deactivated, and that solves other problems.
Hey
I'm back now. Tried for 2 days to implement vector drawing in opengl using the source data, but kept being stupid, so giving up until I have some more free time.
I would recommend the following changes to SatNavActivity onLocationChang ed():
The first line should be just
<pre>
if (newLocation != null) {
</pre>
and then the line
<pre>
if (this.routeOverlay != null && this.autoFollowing && this.mOsmv. getZoomLevel( )>14) {
</pre>
should actually have a check for accuracy instead:
<pre> getZoomLevel( )>14 && aLocation. getAccuracy < 20) {
if (this.routeOverlay != null && this.autoFollowing && this.mOsmv.
</pre>
that means if the accuracy is less than 20m, dont try calculating a new route overlay.
Personally, in terms of the two location providers, I fully agree that when the GPS location provider is active, the network provider should be immediately deactivated, and that solves other problems.
Steve