I want to only record in the fit file start and stop gps position if enabled and use this coordenates to store in internal log.
There is a way to do that? I dont need gps track in this case.
Thanks
I want to only record in the fit file start and stop gps position if enabled and use this coordenates to store in internal log.
There is a way to do that? I dont need gps track in this case.
Thanks
Try Position.enableLocationEvents(Position.LOCATION_CONTINUOUS, method(:onPosition));
when you start and
Position.enableLocationEvents(Position.LOCATION_DISABLE, null);
when you have a gps location with a proper quality/accuracy when you start,
and do the same at then end. In GC, you should just see the start and end points with a straight line between them. or you could pause the recording right after start and resume it right at the end.
BTW, I should have said this is for a device app and not a DF. In a DF, you can't stop GPS in the fit. It just needs to be smart enough to grab location usings something like the onTimer* calls.
You know its possible to adquire position another time at the finish of activity? when I try to enable another time it returns an error. Its like once you disable cant re-enable another time.
Thanks for your help