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());
}
Correct Answer: prints names of all available sensors in device
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Android Programming MCQ Questions