October 2018
Intermediate to advanced
464 pages
15h 17m
English
Position sensors include:
The following sensor types use the Geomagnetic field:
These sensors return three values in the onSensorChanged() event, except for TYPE_MAGNETIC_FIELD_UNCALIBRATED, which sends six values.
A third sensor, the Orientation sensor, has been deprecated, and you are now recommended to use getRotation() and getRotationMatrix() to calculate orientation changes. (For device orientation, such as Portrait and Landscape modes, see the next recipe: Reading device orientation.)