Dear All,
I'm trying to test a watchface with HR indication, but unfortunately I cannot get any HR is the simulator, the value is null. HR is shown correctly in case if this watchface is installed to my F6X (an I wear it :))
This is how I'm trying to get this data:
- Run watchface in simulator;
- Simulation -> Set activity monitoring - steps per minute. Let's say, 200.
- Simulation -> Select activity in Fit Profile - "Walking"
- Simulation -> Fit Data -> Simulate data: nothing happens
- Simulation -> Fit Data -> Save Fit Session: no .fit file is saved to the chosen folder.
The used code is:
activityInfo = Activity.getActivityInfo(); sample = activityInfo.currentHeartRate; if (sample != null) { valueHR = sample; } else if (ActivityMonitor has :getHeartRateHistory) { iterator = ActivityMonitor.getHeartRateHistory(1, true); if ((sample != null) && (sample.heartRate != Activity.INVALID_HR_SAMPLE) ) { valueHR = sample.heartRate; } }
Could you tell me the right approach to HR simulation?
Thanks!