Hi all,
I am making a device app/activity for my VA3 which seems to work fine. I have however lots of problems with getting a custom field to be displayed
in the activity summary. A snippet of my source code:
function startSession() {
_session = ActivityRecording.createSession({:name=>"Step Counter", :sport=>ActivityRecording.SPORT_TRAINING});
_stepsFit = WatchUi.SimpleDataField.createField("Steps", 0, FitContributor.DATA_TYPE_UINT32,
{:mesgType => FitContributor.MESG_TYPE_SESSION});
//_stepsFit = FitContributor.createField("Steps", 0, FitContributor.DATA_TYPE_UINT32, //tried this as well
// {:mesgType => FitContributor.MESG_TYPE_SESSION});
_session.start();
}
function stopSession() {
_session.stop();
_stepsFit.setData(_steps.toNumber());
_session.save();
_session = null
}
When I check the FIT file with monkeygraph, it shows the fieldname in the session summary but the value is #VALUE?. I think I tried about everything
by now but to no avail. I have been searching through the forum and I have found that more developers have (had) this problem, but the entries are
more than 2 years old and I haven't found any solutions.
Could somebody please help me out? Thanks!
Kind regards,
Maartje
Oh, the contributionsfile:
<resources>
<fitContributions>
<fitField id="0" displayInChart="false" displayInActivitySummary="true" precision="0" dataLabel="@Strings.steps" unitLabel="@Strings.stepsunit" sortOrder="1"/>
</fitContributions>
</resources>