- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What is the best way to force landscape orientation? (I am developing for microsoft surface )
It looks like the following is deprecated - what is the current method?
intel.xdk.device.setRotateOrientation("portrait");
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please refer to our orientation sample that ships with the XDK.
New Projects -> Samples & Demos -> HTML5 + Cordova -> Orientation Sample
You can also refer to the Cordova Orientation plugin that uses the device's compass to sense the direction the device is pointed: https://github.com/apache/cordova-plugin-device-orientation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you simply want your app to always be one orientation or another, use the Build setting called "Orientation" in the Projects pane
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good point. Since you say you only need landscape orientation and do not need the UI to change according to orientation detected, Chris's suggestion should work.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page