Hi all,
I've a time value and I need to view it on my connect IQ activity, but it seems wrong and I don't know why (my knowledge are limited, so I discard save value as time, and save as string instead).
In a side I've FIT Field setted correclty (I think):
mTotalWaveTimeField = mSession.createField("timeOnWave", 5, FitContributor.DATA_TYPE_STRING, { :count => 32, :mesgType => FitContributor.MESG_TYPE_SESSION});
...
timeOnWave = Lang.format("$1$:$2$", [mTotalWaveTime / 60, (mTotalWaveTime % 60).format("%02d")]);
mTotalWaveTimeField.setData( timeOnWave );
In the other side I take this value (same variable timeOnWave
) to present on a screen
But when I save the activity looks like:
What's wrong?? Why my value (even as string) doesn't save correctly??
How string "01:49" it converts to "3"??? I couldn't understand... same value, setData correctly... Something I'm doing very wrong...
Any help would be appreciate. Thanks in advance!