Linear acceleration direction to track upward and downward movement of phone
问题 I am trying to track the movement of the device only on the vertical direction, i.e. upward and downward movement. This should be irrespective of the orientation of the device. Things that i already know or have tried are these Linear acceleration is given by sensor TYPE_LINEAR_ACCELERATION and the axes is the phone axes and hence tracking any particular axes does not make a difference. I tried applying transpose or inverse of rotation vector( inverse or transpose for the rotation vector are