I have to develop the same functionality as of this Pedometer App
I have observed this Pedometer app in very high detail.
It\'s not a perfect pedometer app.
Been counting snores, not steps, but have some of the same issues. No actual answers, but some suggestions:
violence
) employ a variable threshold, based on a moving average of previous events.Testing this beast "live" would be impossible. (I can imagine you trying to jog along while holding the laptop in front of you, trying to get the debugger console to focus.) What you should do is first rig your app to make some recordings (ie, write files) containing the raw measurements, then re-rig your app (#ifdefs would be handy here) to be able to "play back" those measurements so that you can step through the app with the debugger and observe its behavior.