Android Gyroscope examples?

前端 未结 2 1401
悲&欢浪女
悲&欢浪女 2020-12-03 12:58

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

相关标签:
2条回答
  • 2020-12-03 13:22

    Yes, all this has been asked before, and it's hard now to decide what a duplicate of is, because of so many questions here. Please, use the search box before posting questions, and ask one single question per post. Thanks.

    Now, to answer your questions:

    Books:

    • https://stackoverflow.com/questions/1114287/good-book-for-beginning-android-development-closed
    • Best Android 2.0 development book?

    Sensors:

    • Android Gyroscope tutorial or sample code
    • Android accelerometer
    • http://www.helloandroid.com/tutorials/using-android-phones-sensors
    • http://stuffthathappens.com/blog/2009/03/15/android-accelerometer/
    • http://dansabin.com/2010/10/19/accelerometer-tutorial-for-android-1-6/
    • http://www.ibm.com/developerworks/opensource/library/os-android-sensor/index.html?ca=dgr-lnxw09Android-Sensors&S_TACT=105AGX59&S_CMP=grlnxw09

    SGS:

    Yes, it has accelerometer and compass sensors: http://www.phonearena.com/phones/Samsung-Galaxy-S_id4522

    0 讨论(0)
  • 2020-12-03 13:33

    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.

    0 讨论(0)
提交回复
热议问题