How to get only horizontal acceleration in accelerometer
问题 Is it possible to get acceleration only in horizontal direction irrespective of the placement of the device. I want to calculate acceleration of moving vehicle using android device. There may be cases where device is placed in any orientation. Is there any way by which i can calculate the acceleration of vehicle using accelerometer without calibrating each time? 来源: https://stackoverflow.com/questions/58959443/how-to-get-only-horizontal-acceleration-in-accelerometer