Sorry, there currently isn't any way to do this. Even if you were to monitor the orientation yourself, there isn't a constant to set the screen to the alternative landscape orientation. (Also trying to use the orientation listener for this would be very tricky since to do this correctly you need to know how to deal with screens that are landscape when not rotated etc.)
A future version of the platform should have APIs to help with this. On Fri, Oct 8, 2010 at 5: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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- 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

