Code example for Sensor

Methods: getMaximumRange, getName, getPower, getResolution, getVendor

0
	} 
 
	private void printSensorSummary(final Sensor s) {
		if (s != null) {
			Log.i(PLUGIN_NAME,
					"    Sensor: " + s.getVendor() + " " + s.getName());
			Log.i(PLUGIN_NAME, "        Max Range  : " + s.getMaximumRange());
			// Requires API Level 9 
			// Log.i(PLUGIN_NAME, "        Min Delay  : " + s.getMinDelay()); 
			Log.i(PLUGIN_NAME, "        Resolution : " + s.getResolution());
			Log.i(PLUGIN_NAME, "        Power Usage: " + s.getPower() + " mA");
		} 
	} 
}