Saturday, May 15, 2010

[android-developers] how to draw a simple shape according to compass data

Hello to everyone;

I am trying to develop an application based on compass and camera
surface. In the application there will be a camera preview and I want
to draw a rectangle and text on this preview. When user turns the
device aroun him, there will be rectangles showing the main
directions. In other words; there must be 4 rectangles on North, West,
South and East. When user turns the camera, he can see the rectangles
in their directions (according to azimuth value).

Now I am able to get the azimuth value and I am able to draw a
rectangle. But how can I make this rectangle moving according to
azimuth value?

Can anyone help me?

--
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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate