Hello,
I made a SimpleDataField for my Vivoactive 4 which detects few conditions (like speed too high) and vibrates to warn me. I put it to Walk activity. But my problem now is that it activates even when I don't launch the activity.
E.g. I walk for few minutes and then drive a car and watch (usually) go crazy vibrating like my speed is too high for a minute or two, then it stops.
I have auto activity enabled, but set it to 10 minutes and this happens even if I walk for only like 3 minutes. If I disable auto activity, it probably doesn't happens (I tried it only two times).
Main code of my SimpleDataField is basically this:
//This is just pseudocode function compute(info) { //every 10 seconds if ((info.timerTime/1000)%10==0) { //speed too high if (info.currentSpeed*3.6 > 30) { Attention.vibrate(vibrator); } // ... other warnings } return new Time.Duration(info.timerTime/1000); }
Is this normal behaviour? And is there a way to prevent my watch acting like this, like checking some variable to determine it runs in background as auto activity or something?
Thanks for replies!