Could you create an OrientationEventListener and set the orientation yourself? (The documentation seems to imply, but not specifically state, that this operates independently of the setRequestedOrientation value.)
On Oct 8, 7:07 am, neha <[email protected]> wrote: > I have an application, that looks good in landscape orientation only > and i want to support both landscape-left and landscape-right > orientation. > > If use setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE), my > application gets restricted to landscape-right orientation (home key > is in the right direction) and does not go to landscape-left > orientation on device rotation. > > If use setRequestedOrientation(SCREEN_ORIENTATION_SENSOR), application > goes to both landscape-left and landscape-right orientation but the > problem is that it goes to portrait orientation also, on device > rotation. > > Can somebody please highlight, how can both landscape-right and > landscape-left orientations be supported without moving to portrait > orientation? Are there are API to set the orientation to both > landscape-left and landscape right orientation or some mechanism to > prevent application from moving to portrait orientation when > setRequestedOrientation(SCREEN_ORIENTATION_SENSOR) is used. -- 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

