01-12-2011 10:35 PM - edited 01-12-2011 10:37 PM
there is no physical button to lock the screen from what i've seen from all the videos of them describing the outside buttons. the only hope for there to be rotation lock is via software where you cange change the option in the settings section in the device.
EDIT: I also want to add that you can lock your application's orientation. meaning that when a user is using your application, if they turn the device it will not rotate the application. At least that's the case in the simulator at the moment. but whats a bummer and a possible bug is if u minimize your application, and then u rotate the screen in the home screen, it will rotate your app no matter what aspect ratio u set it to.
01-25-2011 03:22 AM
Does anyone know how you enforce the rotation locking? I would like to enforce my application to display in landscape mode. Does anyone have an example of the XML that should be used please?
01-25-2011 03:34 AM
You can add the following to you app xml to prevent auto orientation:
Note that there is a bug in the current simulator which allows rotating the screen when the app is minimized. When you maximize it again it'll look weird.
01-25-2011 05:54 AM
Good to know that is a bug and not just a problem with my *-app.xml file.
So as long as we have <autoOrient>false</autoOrient> we won't have to worry about our app rotating?
04-01-2011 11:14 AM
Posting here as this thread never received a final answer.
At the Dev Day yesterday, we confirmed that there is an orientation lock, activated by toggling the state of a toggle switch that comes up in a popup when you tap on the "double-rectangle" icon in the status bar. This is the icon we've seen in recent videos and screenshots, which looks like a horizontal rectangle overlaid with a vertical rectangle.
When you lock it, the icon changes to show a little padlock in the middle of the rectangles.
You can, of course, access this icon to change the state at any time, by doing a top-corner swipe to make the "system tray" appear.
04-01-2011 11:28 AM