1 // Get the SensorManager
2 SensorManager mSensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);
3
4 // List of Sensors Available
5 List<Sensor> msensorList = mSensorManager.getSensorList(SensorManager.SENSOR_ALL);
6
7// source https://stackoverflow.com/questions/2858161/display-an-android-sensors-list
1((SensorManager) getSystemService(SENSOR_SERVICE)).getSensorList(SensorManager.SENSOR_ALL);