How to Determine if Android Device has a Step Detector

public static final String FEATURE_SENSOR_STEP_DETECTOR was added in API level 19
Feature for getSystemAvailableFeatures() and hasSystemFeature(String).
The device includes a hardware step detector.
Constant Value: "android.hardware.sensor.stepdetector"

1. Get a PackageManager Instance named myPackageManager.

2. Create a Boolean Variable named bolStepDetectorSupported

3. Set the Minimum and Target SDK version  to 19 or greater. 

4. In the onCreate method, add the below code. This will return the step detector sensor availability to a boolean named bolStepDetectorSupported. It will then display a toast displaying the step detector sensor availability of the device to the user.

bolStepDetectorSupported = myPackageManager.hasSystemFeature(PackageManager.FEATURE_SENSOR_STEP_DETECTOR);
if (bolStepDetectorSupported) {
Toast.makeText(this, "Device has a Step Detector Sensor", Toast.LENGTH_LONG).show();
} else {
Toast.makeText(this, "Device does NOT have a Step Detector Sensor!", Toast.LENGTH_LONG).show();

5. Compile and run!