| |
|
|
Value |
|
| int |
DATA_X |
Index of the X value in the array returned by
onSensorChanged(int, float[]) |
0 |
0x00000000 |
| int |
DATA_Y |
Index of the Y value in the array returned by
onSensorChanged(int, float[]) |
1 |
0x00000001 |
| int |
DATA_Z |
Index of the Z value in the array returned by
onSensorChanged(int, float[]) |
2 |
0x00000002 |
| float |
GRAVITY_DEATH_STAR_I |
|
3.5303614E-7 |
| float |
GRAVITY_EARTH |
|
9.80665 |
| float |
GRAVITY_JUPITER |
|
23.12 |
| float |
GRAVITY_MARS |
|
3.71 |
| float |
GRAVITY_MERCURY |
|
3.7 |
| float |
GRAVITY_MOON |
|
1.6 |
| float |
GRAVITY_NEPTUN |
|
11.0 |
| float |
GRAVITY_PLUTO |
|
0.6 |
| float |
GRAVITY_SATURN |
|
8.96 |
| float |
GRAVITY_SUN |
values returned by the accelerometer in various locations in the universe. |
275.0 |
| float |
GRAVITY_THE_ISLAND |
|
4.815162 |
| float |
GRAVITY_URANUS |
|
8.69 |
| float |
GRAVITY_VENUS |
|
8.87 |
| float |
LIGHT_CLOUDY |
|
100.0 |
| float |
LIGHT_FULLMOON |
Various luminance values during the night (lux) |
0.25 |
| float |
LIGHT_NO_MOON |
|
0.0010 |
| float |
LIGHT_OVERCAST |
|
10000.0 |
| float |
LIGHT_SHADE |
|
20000.0 |
| float |
LIGHT_SUNLIGHT |
|
110000.0 |
| float |
LIGHT_SUNLIGHT_MAX |
Various luminance values during the day (lux) |
120000.0 |
| float |
LIGHT_SUNRISE |
|
400.0 |
| float |
MAGNETIC_FIELD_EARTH_MAX |
Maximum magnetic field on Earth's surface |
60.0 |
| float |
MAGNETIC_FIELD_EARTH_MIN |
Minimum magnetic field on Earth's surface |
30.0 |
| int |
RAW_DATA_INDEX |
Offset to the raw values in the array returned by
onSensorChanged(int, float[]) |
3 |
0x00000003 |
| int |
RAW_DATA_X |
Index of the raw X value in the array returned by
onSensorChanged(int, float[]) |
3 |
0x00000003 |
| int |
RAW_DATA_Y |
Index of the raw X value in the array returned by
onSensorChanged(int, float[]) |
4 |
0x00000004 |
| int |
RAW_DATA_Z |
Index of the raw X value in the array returned by
onSensorChanged(int, float[]) |
5 |
0x00000005 |
| int |
SENSOR_ACCELEROMETER |
A constant describing an accelerometer. |
2 |
0x00000002 |
| int |
SENSOR_ALL |
A constant that includes all sensors |
127 |
0x0000007f |
| int |
SENSOR_DELAY_FASTEST |
get sensor data as fast as possible |
0 |
0x00000000 |
| int |
SENSOR_DELAY_GAME |
rate suitable for games |
1 |
0x00000001 |
| int |
SENSOR_DELAY_NORMAL |
rate (default) suitable for screen orientation changes |
3 |
0x00000003 |
| int |
SENSOR_DELAY_UI |
rate suitable for the user interface |
2 |
0x00000002 |
| int |
SENSOR_LIGHT |
A constant describing an ambient light sensor
Only the first value is defined for this sensor and it contains
the ambient light measure in lux. |
16 |
0x00000010 |
| int |
SENSOR_MAGNETIC_FIELD |
A constant describing a magnetic sensor
Sensor values are the magnetic vector in the X, Y and Z axis,
where the X axis has positive direction toward the right side of the device,
the Y axis has positive direction toward the top of the device
and the Z axis has positive direction toward the front of the device. |
8 |
0x00000008 |
| int |
SENSOR_MAX |
Largest sensor ID |
64 |
0x00000040 |
| int |
SENSOR_MIN |
Smallest sensor ID |
1 |
0x00000001 |
| int |
SENSOR_ORIENTATION |
A constant describing an orientation sensor. |
1 |
0x00000001 |
| int |
SENSOR_ORIENTATION_RAW |
A constant describing an orientation sensor. |
128 |
0x00000080 |
| int |
SENSOR_PROXIMITY |
A constant describing a proximity sensor
Only the first value is defined for this sensor and it contains
the distance between the sensor and the object in meters (m)
|
32 |
0x00000020 |
| int |
SENSOR_STATUS_ACCURACY_HIGH |
This sensor is reporting data with maximum accuracy |
3 |
0x00000003 |
| int |
SENSOR_STATUS_ACCURACY_LOW |
This sensor is reporting data with low accuracy, calibration with the
environment is needed |
1 |
0x00000001 |
| int |
SENSOR_STATUS_ACCURACY_MEDIUM |
This sensor is reporting data with an average level of accuracy,
calibration with the environment may improve the readings |
2 |
0x00000002 |
| int |
SENSOR_STATUS_UNRELIABLE |
The values returned by this sensor cannot be trusted, calibration
is needed or the environment doesn't allow readings |
0 |
0x00000000 |
| int |
SENSOR_TEMPERATURE |
A constant describing a temperature sensor
Only the first value is defined for this sensor and it
contains the ambient temperature in degree C. |
4 |
0x00000004 |
| int |
SENSOR_TRICORDER |
A constant describing a Tricorder
When this sensor is available and enabled, the device can be
used as a fully functional Tricorder. |
64 |
0x00000040 |
| float |
STANDARD_GRAVITY |
Standard gravity (g) on Earth. |
9.80665 |