خرید بک لینک

Vote count: 0

I'm using Sensor.TYPE_LINEAR_ACCELERATION and Sensor.TYPE_ROTATION_VECTOR to read the rotation vector and accelerometer values from the device's sensors.

Now, I want to use this data to calculate the vertical acceleration of the phone - i.e. regardless of how the phone is rotated, I want to be able to read the acceleration in the up/down direction relative to the ground.

How can I accomplish this?

asked 2 mins ago

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 27 ارديبهشت 1395 ساعت: 4:31

صفحه بندی