I was thinking of offering this as an alternative= to customers.
http://www.amazon.com/Sun-DC204WB-Slip-On-Wrist-Compass/dp/B001949J1W/ref=sr_1_1?ie=UTF8qid=1425488514sr=8-1keywords=slip+on+wrist+compass
Less battery drain, and probably more reliable. ;)
I tried forcing it to use these two sensors:
Sensor.TYPE_ACCELEROMETER
Sensor.TYPE_MAGNETIC_FIELD
Before that, it was defaulting to a RotationVectorSensor if one exists.
I thought, at least in the phone world, that was preferable where it
exists.
On Sony Smartwatch 3, it does exist but apparently not preferable. I don't
know about the other devices.
Anybody else have secrets to contribute?
Nathan
On Tuesday, March 3, 2015 at 3:42:44 PM UTC-8, Nathan wrote:
I implemented code that finds the compass direction.
It uses Sensor.TYPE_ROTATION_VECTOR.
The same code works fine (or at least, as usual) on the phone using
Android 4.4.
I've tried it out on my Sony Smartwatch 3 and it works - a small minority
of the time.
I have found that if I look at the compass needle I placed on North,
Sometimes it points North.
Sometimes it points West
Sometimes it points East.
Sometimes it points South
Sometimes it points some other
Sometimes it moves When I rotate the watch. Sometimes it doesn't feel like
it.
Calibrating (in other words, twisting my arm around violently), did not
consistently help.
Is my experience typical?
Before I spend a lot of time trying to figure out if there is something
weird with the code, I wanted to know how many have tried and are there any
secrets.
Maybe I should drop the idea of apps using compass sensors if they are
just going to annoy end users who will send me hate mail.
I've read things on the internet that indicate the Moto360 does not have
the right sensors for compass rotation but it guesses anyway.
Besides this device, I only have experience with the Gear Live. It had
some funny compass directions sometimes too. The funniest part (ha ha) was
once in a while, the compass sensor, plus all other motion sensors, just
stopped working at all for a week or two.
Sometimes they came back, but it happened enough that I returned that
unit.
Nathan
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.