- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
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");
- Balises:
- HTML5
- Intel® XDK
Lien copié
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
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
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
If you simply want your app to always be one orientation or another, use the Build setting called "Orientation" in the Projects pane
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
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.

- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable