Message info From:Zsolt Vasvari Subject:[android-developers] Re: How to detect screen rotation through 180 degrees from landscape to landscape orientation? Date:Wed, 28 Mar 2012 23:06:51 -0700 (PDT)

Just curious, why do you care which side of the screen is up? 

On Thursday, March 29, 2012 9:57:14 AM UTC+8, Mark Carter wrote:

I've seen a few other questions similar to this but no answers.

Rotating from portrait to landscape (either direction) and back again, we get the helpful call to onConfigurationChanged().

However, when rotating from landscape to landscape (through 180 degrees) onConfigurationChanged() is not called.

I've seen mention of using OrientationEventListener but this seems flakey to me because you can rotate quickly around without triggering a display orientation change.

I've tried adding a layout change listener, but with no success.

So the question is, how to reliably detect such a change in landscape orientation?

Note: I also posted this on SO:

You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at