Android: Problems calculating the Orientation of the Device

前端 未结 4 489
耶瑟儿~
耶瑟儿~ 2020-12-30 09:14

i\'am trying to build a simple Augmented Reality App, so I start working with sensor Data.

According to this thread (Android compass example) and ex

4条回答
  •  猫巷女王i
    2020-12-30 09:53

    Have you tried the combined (sensor-fusion) type Sensor.TYPE_ROTATION_VECTOR. This may give better results: Go to https://developer.android.com/reference/android/hardware/SensorEvent.html and search for 'rotation_vector'.

提交回复
热议问题