Code example for Sensor

Methods: getMaximumRangegetName

0
		}		 
	} 
 
	@Override 
	public void onAccuracyChanged(Sensor sensor, int accuracy) {
		System.out.println("name:" + sensor.getName());
		System.out.println("MaximumRange:" + sensor.getMaximumRange());
	} 
	 
	@Override 
	protected void onResume() { 
		super.onResume(); 
		mSensorManager.registerListener(
				this, 
				mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER), 
				SensorManager.SENSOR_DELAY_NORMAL);
	} 
	 
	@Override 
	protected void onPause() { 
Connect your IDE to all the code out there  Get Codota for Java