Step Counter in Android KitKat
android, android-sensors, sensors
Solution
Not all KitKat devices will support these sensors from my understanding of the documentation:
Both step sensors are hardware dependent (Nexus 5 is the first device to support them), so you should check for availability with hasSystemFeature(), using the FEATURE_SENSOR_STEP_DETECTOR and FEATURE_SENSOR_STEP_COUNTER constants.
Problem
Google, in Android KitKat (v.4.4.x), newly introduced `TYPE_STEP_COUNTER` and `TYPE_STEP_DETECTOR` and `Batched sensor events`. Does anyone know if the newly introduced sensor is supported in all KitKat devices or only the new devices with specific hardware (e.g. Nexus 5, Moto X, etc)?Can we create a list with all supported devices? Can these new sensors be used in the Android v4.4 emulator if you feed mock sensory data?