Android getOrientation() method returns bad results

前端 未结 4 503
小蘑菇
小蘑菇 2020-12-13 22:32

I\'m creating 3D Compass application.

I\'m using getOrientation method to get orientation (almost same implementation like here). If I place phone on the table it wo

4条回答
  •  一向
    一向 (楼主)
    2020-12-13 22:48

    Well I had exactly the same problem as I was retrieving orientation. Thing is that I didn't get is solved (I had to set a constraint when it comes to the device position when retrieving it), and I don't know if you'll ever be able to.

    Pick a magnetical compass and try to get north orientation when the compass is in the situation you describe - you will get the same non-sense results. So you can't really expect the device's compass to do it any better !

提交回复
热议问题