I believe that Display.getOrientation actually returns the physical rotation applied to the display... I also notice that the documentation says nothing about what it actually returns, so how can you use it correctly? :) (The Display object clearly needs a lot more documentation... but this is a pretty low priority because, again, it really shouldn't be used by applications.)
--
Dianne Hackborn
Android framework engineer
hackbod@android.com
Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them.
-- On Sat, Oct 31, 2009 at 5:08 AM, Mark Murphy <mmurphy@commonsware.com> wrote:
mscwd01 wrote:That changes the trigger. For devices with a keyboard (e.g., G1), by
> I added this to the activity tag in the manifest:
> android:screenOrientation="sensor"
>
> Would that make any difference?
default, an orientation change is triggered by sliding the keyboard, not
the accelerometer. android:screenOrientation="sensor" forces it to be
the "sensor" (a.k.a., accelerometer) like the Magic, Hero, and other
keyboard-less devices.
Since you are experiencing your problem with both the G1 (with keyboard)
and the Magic (sans keyboard), I doubt this will help, but I could
easily be wrong.
--
Warescription: Three Android Books, Plus Updates, $35/Year
--
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
--
Dianne Hackborn
Android framework engineer
hackbod@android.com
Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them.
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
No comments:
Post a Comment