I have used the below code to check the TYPE_SIGNIFICANT_MOTION sensor availability.
SensorManager mSensorManager = (SensorManager) context
.getSystemService(Context.SENSOR_SERVICE);
List<Sensor> sensors = mSensorManager
.getSensorList(Sensor.TYPE_SIGNIFICANT_MOTION);
boolean isSensorAvailable = Boolean.valueOf(sensors.size() > 0);
I have tested in three different devices. All the devices returning false.
In doc they given that TYPE_SIGNIFICANT_MOTION Constants added in API 18. How to check this sensor availability to version prior to 18. Correct me to get the right sensor availability status.