Android Gyroscope examples?

2019-01-11 21:16发布

I'm sure this has been asked here many times but, are there any examples on the Internet about gyroscope Android development. Because the Gyroscope intrigues me and I think it could make for a pretty good thing to work with. I am just guessing the Samsung Galaxy S has a gyroscope, right? I hope so. Again though, my main need is for a tutorial, maybe even a good android programming tutorial/book (not just gyroscope related). I learned Java just for the purpose of Android development. I already knew C and a little OBJ-C so learning Java took a few weeks. So, one more time does anyone know any really good tutorials/books for Android development (I found a few tutorials on you-tube but their quality were so terrible I couldn't follow along) and maybe a good gyroscope tutorial for Android and a list of Android phones that have gyroscope built-in.

2条回答
我欲成王,谁敢阻挡
2楼-- · 2019-01-11 21:43

You can check-out my simple demo-application which not only uses the Gyroscope, but also Rotation-Vector and Sensor-Fusions in order to rotate a cube.

https://bitbucket.org/apacha/sensor-fusion-demo

You can take the sensor-code from there and use it in an application of your choice.

查看更多
登录 后发表回答