I have an App which senses motion of a Device and raise alarm if device is moved. Currently i'm using Accelerometer. But i couldn't fine tune it. Even a small movement causes the alarm to raise.
So my question is which Sensor will suit most for the task ? And what other work arounds are available ?
Please help guys..
Sorry for the lame question, I thought i could get some answers about development experiences of others in this same issue,
Anyway, here's what i did,
I used this code in this Answer
Guess the problem was with the filtering of the sensor data, my method was simply to convert the floats to ints so that decimal part would be truncated.. but it didn't work.. but the code in the link above worked better with some minor changes..
Thanks for your suggestions..