How to get current compass reading android 2.1

Posted by Brandon Delany on Stack Overflow See other posts from Stack Overflow or by Brandon Delany
Published on 2010-05-31T16:04:36Z Indexed on 2010/05/31 18:23 UTC
Read the original article Hit count: 277

Filed under:
|

How do I get the current compass reading in android 2.1? I know that I can initiate a listener and receive updates but I do not need constant updates I only need it to get the compass orientation when the user clicks a button.

Also what is the most accurate way to get the compass orientation?

Lastly, how do I send fake data to the android console. I know that you're supposed to use the terminal and send it commands but what are the commands I can't seem to find it on the Android website.

Thank you

© Stack Overflow or respective owner

Related posts about java

Related posts about android