Code example for Sensor

Methods: getMaximumRange

0
 
        } 
 
        @Override 
        public void onAccuracyChanged(Sensor sensor, int i) {
            maxLevel = (long) sensor.getMaximumRange();
            lightLevel.setMax(maxLevel.intValue());
        } 
    } 
 
} 
 
Contextual code suggestions in your IDE  Get Codota for Java