setRequestedOrientation( ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE );
On 30 Mar, 12:16, saex <[email protected]> wrote: > I have an application that can be viewed with landscape and portrait mode. I'm > not using onConfigurationChanged() and > android:configChanges="orientation|keyboardHidden" and the screen > orientation change is working perfectly. > > But now, i have a small problem. I want to learn to lock the screen > orientation change of the screen. I mean that for example, when the user > press a "lock" button, the screen orientation must be locked and it must > not change, and when the user press again that button, the screen > orientation must get unlocked > > ¿how can i lock the screen orientation dinamically? -- 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

