In my application, I'm collecting distance, speed, etc. data from Activity.getActivityInfo(). At the start of the application, I'm enabling the GPS with
Position.enableLocationEvents(Position.LOCATION_CONTINUOUS, method(:onPosition));.
Later, if user select a certain config in the application, I'm trying to disable that with
Position.enableLocationEvents(Position.LOCATION_DISABLE, method(:onPosition));.
But that doesn't work. I'm still getting location data, and the distance and speed data all over the place: getting 1000000km of distance in no time.
I tried to workaround it by setting LOCATION_ONE_SHOT insted of LOCATION_DISABLE. Still not better.
I tried to remove the GPS enabling (LOCATION_CONTINUOUS) from the application start, and just keeping the LOCATION_DISABLE, but that didn't work neither.
-------------
Besides, I would assume, if GPS is disabled, Edge would collect the distance and speed information from my bike trainer (paired with ANT+ FE-C protocol). But that doesn't work neither. It's not working on 530/830/1030 neither. I can see the correct data, if I check the Edge's default datafields (not in-app).