I wonder if others have experienced this as well. when attaching to the Sensor.TYPE_MAGNETIC_FIELD sensor on a Moto 360 (Android Wear), I'm not getting any updates.
the following code all works:
SensorManager sm = (SensorManager) this.getSystemService(Context.SENSOR_SERVICE);
Sensor magnetic = sm.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD);
Log.i("Wear", "magnetic: " + magnetic);
with the output:
I/Wear (17471): magnetic: {Sensor name="Compass Sensor", vendor="Motorola", version=1, type=2, maxRange=4900.0, resolution=0.15, power=0.45, minDelay=40000}
but after registering a listener to this sensor, no events are ever fired.
other sensors (like the accelerometer and the gyro) work fine.