[android-developers] How to detect screen rotation through 180 degrees from landscape to landscape orientation?
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: http://stackoverflow.com/questions/9909037/how-to-detect-screen-rotation-through-180-degrees-from-landscape-to-landscape-or
--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
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home