on resume . concode_field_sep int COUNTER_MAX concode_elem_sep float DEGREE_DIFFERENCE concode_elem_sep SensorActivity activity concode_elem_sep int INTERVAL concode_elem_sep float[] mMagnetic concode_elem_sep int notUpdated concode_elem_sep float SKIP_DISTANCE concode_elem_sep int NOT_UPDATED_MAX concode_elem_sep float[] mGravity concode_elem_sep boolean first concode_elem_sep int counter concode_elem_sep float directionY concode_elem_sep float total concode_elem_sep SensorManager sensorManager concode_field_sep void onSensorChanged concode_elem_sep float getDirection concode_elem_sep void onAccuracyChanged concode_elem_sep void onStop
void function ( ) { sensorManager . registerListener ( this , sensorManager . getDefaultSensor ( Sensor . TYPE_ACCELEROMETER ) , SensorManager . SENSOR_DELAY_FASTEST ) ; sensorManager . registerListener ( this , sensorManager . getDefaultSensor ( Sensor . TYPE_MAGNETIC_FIELD ) , SensorManager . SENSOR_DELAY_FASTEST ) ; }