Android acceleration direction -
after searching while did not find way isolate translation acceleration direction rotation. im looking yo find way acceleration direction independently of how mobile phone rotated (and of course independently of how rotated). basically allow me make difference among acceleration, deceleration , change of direction. i tried compensate acceleration sensor angles ones obtained getorientation experimented getorientation angles (azimut, pitch, , roll) not same when device has translation movement (acceleration). i need 1 of both: acceleration direction no matter how device rotating or orientation values no matter how device being accelerated. is possible? finally found it! after android documentation can rotation matrix (getrotationmatrix) change coordinates system of mobile: rotation matrix r transforms vector device coordinate system world's coordinate system. but in parameters documentation says (and here quiz): gravity -is array of 3 floats containin...