Question:What does the following code do?
SensorManager mgr = (SensorManager) getSystemService(SENSOR_SERVICE);
List<Sensor> sensors = mgr.getSensorList(Sensor.TYPE_ALL);
for (Sensor sensor : sensors) {
        System.out.println(""+sensor.getName());
}
 

A prints names of all available sensors in device 

B prints names of all available sensor types in device 

C prints names of all sensors which are not available 

D none 

+ Answer
+ Report
Total Preview: 4209

Copyright © 2024. Powered by Intellect Software Ltd