i would like to know if a sensor (for exemple the accellerometer) is present on my Android device.
I am dealing with the SensorManager class. Here is the code I am using:
sensorMgr = (SensorManager) getSystemService(SENSOR_SERVICE);
sensorMgr.registerListener(this,sensorMgr.getDefaultSensor(Sensor.TYPE_ACCELEROMETER),1);
Thank you.