health-samples icon indicating copy to clipboard operation
health-samples copied to clipboard

Problem adding more types of exercises

Open Desii99 opened this issue 3 years ago • 2 comments

I can't add another exercise If I try to add another exercise apart from running and try to execute the other type of exercise I never take the data of the new exercise but those of running. Why could this happen? Is there an example where two types of exercise are implemented to observe that it could be failing?

Desii99 avatar Jun 10 '22 20:06 Desii99

Also, I have configured the other type of exercise in the same way that I have configured the running exercise.

Desii99 avatar Jun 10 '22 20:06 Desii99

Are you able to share an example? Are you seeing any error messages?

You can configure the type of exercise using setExerciseType, as shown here in HealthServicesManager

However, you should be sure to check that the device supports the exercise type you are requesting, and the data types you are requesting, using capabilities, as shown in the sample

garanj avatar Jun 15 '22 08:06 garanj