Thank you very much, Rud. I'm looking at your blog. One more thing I
want to ask you. On your blog, you have a piece of code:

private class OrientationListner implements SensorEventListener {
...

Currently, I'm still using SensorListener, and I think it's already
deprecated. But when I changed it to SensorEventListener, my program
didn't recognize it... it seems that I don't have this API.... But the
thing is, the SDK i'm using is Android 1.5, which I think should
include the API....So do you have any idea why this happens...?

I looked at my android.hardware when I imported it. It showed that
android.hardware only had the classes of Camera and SenorManager, and
one interface of SensorListener... no SensorEventListener..

Also, getRotationMatrix is not recognized too... for which I already
wrote another post to ask.

I'm actually pretty new to Android, even Java...>_<

Thanks,
DD


On Oct 5, 10:04 am, Rud <rudmerr...@gmail.com> wrote:
> See my blog for code to do the 
> processing:http://mysticlakesoftware.blogspot.com/
>
> Rud
>
> On Oct 4, 7:57 am, DD <daviddiaofri...@gmail.com> wrote:
>
>
>
> > Hi,
>
> > It seems that for onSensorChanged(), the orientation readings
> > (yaw,pitch,roll) are not detected directly, but computed from the
> > acceleration readings. Does anybody know how they do this calculation?
> > is it by rotationmatrix..? May I know exactly the calculation process?
>
> > Thanks!- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to