Implement GPX explorer. Issue 514
This commit is contained in:
parent
b7c38b27a9
commit
70096f4a74
1 changed files with 5 additions and 2 deletions
|
@ -521,8 +521,11 @@ public class MapActivity extends Activity implements IMapLocationListener, Senso
|
|||
Log.d(LogUtil.TAG, "Location changed " + location.getProvider()); //$NON-NLS-1$
|
||||
}
|
||||
if(location != null && settings.SAVE_TRACK_TO_GPX.get()){
|
||||
savingTrackHelper.insertData(location.getLatitude(), location.getLongitude(),
|
||||
location.getAltitude(), location.getSpeed(), location.getTime(), settings);
|
||||
// write only with 50 meters accuracy
|
||||
if (!location.hasAccuracy() || location.getAccuracy() < 50) {
|
||||
savingTrackHelper.insertData(location.getLatitude(), location.getLongitude(), location.getAltitude(), location.getSpeed(),
|
||||
location.getTime(), settings);
|
||||
}
|
||||
}
|
||||
registerUnregisterSensor(location);
|
||||
updateSpeedBearing(location);
|
||||
|
|
Loading…
Reference in a new issue