Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)

Class android.hardware. SensorManager

Added Methods
Sensor   getDefaultSensor ( int )  
float   getInclination ( float[] )  
float[]   getOrientation ( float[], float[] )  
boolean   getRotationMatrix ( float[], float[] , float[] , float[] )  
List<Sensor>   getSensorList ( int )  
boolean   registerListener ( SensorEventListener, Sensor , int )  
boolean   registerListener ( SensorEventListener, Sensor , int , Handler )  
boolean   remapCoordinateSystem ( float[], int , int , float[] )  
void   unregisterListener ( SensorEventListener )  
void   unregisterListener ( SensorEventListener, Sensor )  
 

Changed Methods
int   getSensors () Now deprecated .
 
boolean   registerListener ( SensorListener, int ) Now deprecated .
 
boolean   registerListener ( SensorListener, int , int ) Now deprecated .
 
void   unregisterListener ( SensorListener ) Now deprecated .
 
void   unregisterListener ( SensorListener, int ) Now deprecated .
 
 

Added Fields
int   AXIS_MINUS_X  
int   AXIS_MINUS_Y  
int   AXIS_MINUS_Z  
int   AXIS_X  
int   AXIS_Y  
int   AXIS_Z  
 

Changed Fields
int   DATA_X Now deprecated .
 
int   DATA_Y Now deprecated .
 
int   DATA_Z Now deprecated .
 
float   LIGHT_NO_MOON Changed in value from 0.0010f to 0.001f.  
int   RAW_DATA_INDEX Now deprecated .
 
int   RAW_DATA_X Now deprecated .
 
int   RAW_DATA_Y Now deprecated .
 
int   RAW_DATA_Z Now deprecated .
 
int   SENSOR_ACCELEROMETER Now deprecated .
 
int   SENSOR_ALL Now deprecated .
 
int   SENSOR_LIGHT Now deprecated .
 
int   SENSOR_MAGNETIC_FIELD Now deprecated .
 
int   SENSOR_MAX Now deprecated .
 
int   SENSOR_MIN Now deprecated .
 
int   SENSOR_ORIENTATION Now deprecated .
 
int   SENSOR_ORIENTATION_RAW Now deprecated .
 
int   SENSOR_PROXIMITY Now deprecated .
 
int   SENSOR_TEMPERATURE Now deprecated .
 
int   SENSOR_TRICORDER Now deprecated .