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
fredoust
Posts: 75
Registered: ‎09-12-2012
My Device: Looking for a BB10 testing device
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
mzex
Posts: 368
Registered: ‎06-30-2012
My Device: Playbook, Z10LE, DevAlpha C

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.

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

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

Great ! thanks.

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