void function ( ) { if ( mSensor == null ) { Log . w ( TAG , "srini_string" ) ; return ; } if ( mEnabled == false ) { if ( localLOGV ) Log . d ( TAG , "srini_string" ) ; mSensorManager . registerListener ( mSensorEventListener , mSensor , mRate ) ; mEnabled = true ; } }
enables the orientationeventlistener so it will monitor the sensor and call #onorientationchanged when the device orientation changes . concode_field_sep boolean DEBUG concode_elem_sep OrientationListener mOldListener concode_elem_sep boolean localLOGV concode_elem_sep int mOrientation concode_elem_sep int mRate concode_elem_sep Sensor mSensor concode_elem_sep SensorManager mSensorManager concode_elem_sep SensorEventListener mSensorEventListener concode_elem_sep int _DATA_X concode_elem_sep String TAG concode_elem_sep int _DATA_Y concode_elem_sep int ORIENTATION_UNKNOWN concode_elem_sep int _DATA_Z concode_elem_sep boolean mEnabled concode_field_sep void onSensorChanged concode_elem_sep void disable concode_elem_sep void onAccuracyChanged concode_elem_sep boolean canDetectOrientation concode_elem_sep void onOrientationChanged concode_elem_sep void registerListener