On Jan 11, 5:00 pm, Phil Endecott <spam_from_goo...@chezphil.org>
wrote:
> There is a deprecated method Display.getOrientation().  Perhaps that
> is what I'm supposed to use, however its docs seem to have been
> removed when it was deprecated (Please Don't Do That!).  Googling
> suggests that perhaps it returns values like
> Configuration.ORIENTATION_PORTRAIT and
> Configuration.ORIENTATION_LANDSCAPE, i.e. not including "left" or
> "right" or "upside-down" information, making it useless.

Experimenting with the Google Maps app, it seems that its compass
arrow points the wrong way in one of the two landscape orientations.
So my guess is that it is using Display.getOrientation(), and then
guessing wrongly 50% of the time if the answer is "landscape".  (It
doesn't seem to allow upside-down portrait.)

Is there really no better way to do this?

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