When you set the screen orientation to portrait, you are forcing the screen orientation to portrait, and it will not change. There is no way to find out that it changes, because it simply doesn't.
On Tue, Sep 22, 2009 at 9:10 AM, David Given <[email protected]> wrote: > > I've got an activity which is always configured to be displayed in > portrait mode (with android:screenOrientation="portrait"). I don't want > it destroyed when an orientation change happens, so I have > android:configChanges="orientation" for it. > > However, it *does* needs to be aware of orientation changes, so I can > update the content. Unfortunately it would appear that while I am being > sent configuration change events, the orientation in the configuration > claims it's always in portrait mode, presumably because that's what the > activity is set to. > > How can I have my activity be permanently in portrait mode and *also* > receive the correct orientation change events as the phone is rotated? > > -- > ┌─── dg@cowlark.com ───── http://www.cowlark.com ───── > │ > │ "They laughed at Newton. They laughed at Einstein. Of course, they > │ also laughed at Bozo the Clown." --- Carl Sagan > > > > -- Dianne Hackborn Android framework engineer [email protected] 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

