Reputation: 1593
we want to build an Android app.
For the idea we have, we need to know, if an user moved or not.
It is unimportant, if the user moved 3 or 10 meters (10 - 30 feet) but it should be more then a half meter (so more then 1,5 feet) - so the user should really leave its position, not only moving its hand with the phone into the opposite direction.
I know the android sensors, but I'm new to android programming and I need a little hint what is the best way to check, if the user moved or not.
GPS of wifi signal level is not an option, we want to use the typical android sensors the most phones have.
In this presentation, on page 8, it is mentioned, that not many devices use the gyroscope, but the data is from 2010.
Now we have 2012 - is it still true? What would go recommend to use?
Is there a framework which already solves this problem?
Upvotes: 1
Views: 1663
Reputation: 58501
... it should be more then a half meter (so more then 1,5 feet) - so the user should really leave its position, not only moving its hand with the phone into the opposite direction.
You can't make it. No matter what you do, I can always find a way to fool your ad-hoc workaround.
The reason is accuracy. I also give some alternatives at that answer what you could try instead, depending on your application.
Upvotes: 1