I\'m searching for a compass example for Android. All I need to do is to get the correct bearing (in portrait & landscape mode).
I already found several samples,
Thanks to Dan for his sample code.
But there is just a little correction : change event.values to event.values.clone() according to this discussion.It works for me now after this modification.
event.values
event.values.clone()