Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 75
Registered: ‎09-12-2012
My Device: Looking for a BB10 testing device
My Carrier: Developper
Accepted Solution

SupportedDisplayOrientation.All; => nothing happend in landscape

Hi all,

I use  OrientationSupport.supportedDisplayOrientation = SupportedDisplayOrientation.All;

in order to allow my page to be view in landscape, but when I turn the device nothing happend and the page stay in portrait.

 

If I write  OrientationSupport.supportedDisplayOrientation = SupportedDisplayOrientation.DisplayLandscape; it's ok  the page turn to landscape.

 

Anyone get this problem ?

 

Thanks.

---------
Mobile developer freelance - QtQuick - Cascades - WP7 - Android
My works : http://fdelgado.fr
Developer
Posts: 368
Registered: ‎06-30-2012
My Device: Playbook, Z10LE, DevAlpha C
My Carrier: Telenor, Mobitel

Re: SupportedDisplayOrientation.All; => nothing happend in landscape

You set that for qml file, you need to set also in bar-descriptor.xml. 

If your app need to auto orient you need to set autoorients tag to true.

Highlighted
Developer
Posts: 75
Registered: ‎09-12-2012
My Device: Looking for a BB10 testing device
My Carrier: Developper

Re: SupportedDisplayOrientation.All; => nothing happend in landscape

Great ! thanks.

---------
Mobile developer freelance - QtQuick - Cascades - WP7 - Android
My works : http://fdelgado.fr