7.2. Using the sensor
The sensor uses the standard Android API, SensorEventListener. The following lists the available
sensor types and usage examples.
7.2.1. Sensor type
The BT-2000 can use the following sensors. The following sensor types are also defined in the
Android Sensor class.
Sensor type
IMU
Geomagnetic sensor
ALS
Others
* You can acquire the above from the Android Sensor class.
7.2.2. Import module
To use sensors, import below module.
android.hardware.Sensor
android.hardware.SensorEvent
android.hardware.SensorEventListener
MOVERIO Pro Developer's Guide (Rev.1.4)
Accelerometer
Gyroscope
Geomagnetic sensor
Sensor Illumination
Tap detection
Azimuth detection
117
ID (Hex)
Constant name
0x00000001
TYPE_ACCELEROMETER
0x00000004
TYPE_GYROSCOPE
0x00000002
TYPE_MAGNETIC_FIELD
0x00000005
TYPE_LIGHT
0x00002001
TYPE_HEADSET_TAP
0x00000003
TYPE_ORIENTATION