I'm trying to detect a motion that you would get from bumping two phones with each other.
My question is, is an accelerometer the right sensor for this?
If so, how would I implement it?
Otherwise, what sensor should I use and in what way should I use it?
According to the guide at https://developer.android.com/guide/topics/sensors/sensors_overview, TYPE_LINEAR_ACCELERATION
seems like the right one to use, however I can't figure out how to use it.
from How do I detect an increase in movement then a sudden stop using the device's accelerometer?
No comments:
Post a Comment