Is there anybody who has the problem with showing and ActivityInfo.... data in datafield? I tested to show totalAscent or elapsedDistance in it and it works in simulator, but it shows empty datafield in a watch. I don't know why. I'm sorry. It's my first time when I try to play with this. I read many topics on this forum, but I can't find where I have the problem. I know that DataFields have no access to lap data, but I think, it has an access to ActivityInfo data.
I will be happy for any advice. (i know it is a stupid question).
this is my easy test:
function initialize() {
activityInfo = Act.getActivityInfo();
elaDist = activityInfo.elapsedDistance;
label = DistTest;
}
function compute(info) {
// See Activity.Info
if ( elaDist != null )
{
return elaDist;
}
else
{
return "0";
}
}