문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top