Wednesday, July 20, 2011

[android-developers] Re: Compass and Sensor.Type_Orientation

On Jul 19, 10:08 pm, Adam Ratana <adam.rat...@gmail.com> wrote:
> Interesting, well I think the reason Carlos' code is not working is because
> he needs to use the MAGNETIC_FIELD with perhaps either the ACCELEROMETER or
> GRAVITY.  I personally use the ACCELEROMETER as this has been the practice
> from what I understand since day 1.
>

It seems like that would be wrong when moving at an uneven speed, if I
go by the spec. Of course, that might be consistent with a real
compass.

The sample does use accelerometer.

http://www.damonkohler.com/2010/06/better-orientation-readings-in-android.html

But the person doing that sample didn't actually compile it or run it
before posting. Assigning to final variables would not have passed the
compiler.

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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment