Friday, March 30, 2012

[android-developers] It is possible to lock the screen orientation of the phone only when you want? (dinamically)


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 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


Real Estate