Hi,
Is it possible to know if sensor is on or off? I want to know which sensors are enabled and save them on array
Thank you!
Hi,
Is it possible to know if sensor is on or off? I want to know which sensors are enabled and save them on array
Thank you!
A more comfortable method and very simple might be to ask if sensor data is available for each sensor via Activity.Info:
If true: sensor is ready to transmit:
if (info has :currentCadence and info.currentCadence != null)
if (info has :currentHeartRate and info.currentHeartRate != null)
if (info has :currentPower and info.currentPower != null)
and so on...
(Will not work for speedsensor cause speed is always available - even without sensor.)