Code example for SensorManager

Methods: unregisterListener

0
		 
	} 
 
	public void pauseAccel() 
	{ 
        sensorManager.unregisterListener(this);	
	} 
	 
	public void resumeAccel() 
	{ 
		sensorManager.registerListener(this, 
				   SensorManager.SENSOR_ACCELEROMETER,
				   SensorManager.SENSOR_DELAY_GAME);
	} 
	 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE