Hi there,
I would like to get the value of "step counter" Sensor as of "Activity_Create" event.
Currently this step counter value is stored in a Global variable "VG_COMPTEUR_GEN" set in "Sensor_SensorChanged" Sub
It works but I have to walk 10 steps for this Sub to execute while I need the value just after my application starts and even if I'm static.
Any way to do this please ?
Sub Sensor_SensorChanged (Values() As Float)
Dim ps As PhoneSensors
Dim sd As SensorData
Dim lbl As Label
'Get the PhoneSensors object that raised this event.
ps = Sender
sd = SensorsMap.Get(ps) 'Get the associated SensorData object
lbl = SensorsLabels.Get(ps) 'Get the associated Label.
VG_COMPTEUR_GEN = Values(0)
End Sub