android - magnetic field sensor in Moto 360 not sending updates -



android - magnetic field sensor in Moto 360 not sending updates -

i wonder if others have experienced well. when attaching sensor.type_magnetic_field sensor on moto 360 (android wear), i'm not getting updates.

the next code works:

sensormanager sm = (sensormanager) this.getsystemservice(context.sensor_service); sensor magnetic = sm.getdefaultsensor(sensor.type_magnetic_field); log.i("wear", "magnetic: " + magnetic);

with 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 listener sensor, no events ever fired.

other sensors (like accelerometer , gyro) work fine.

can seek shaking device bit , see if compass readings show up. can seek move area (with less magnetic interference) .. , maybe figure eights calibrate device.

android android-wear moto-360

Comments

Popular posts from this blog

java Multi query from Mysql using netbeans -

c# - DotNetZip fails with "stream does not support seek operations" -

c++ - StartServiceCtrlDispatcher don't can access 1063 error -