1

I am working on MOTOROLA XOOM for app. development. I want to use gyros sensor in my application. If someone can help me out to call gyros in my program.

Thank you,

Dr. Arslan
  • 1,254
  • 1
  • 16
  • 27

1 Answers1

1

Use SensorManager, to register a SensorEventListener for the default Sensor.TYPE_GYROSCOPE sensor. Your SensorEventListener will receive SensorEvent objects in onSensorChanged(). There, you can read the angular speed around the X/Y/Z axes from the SensorEvent. Details of the angular speed data can be found in the documentation for SensorEvent.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491