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

Adobe AIR Development

Reply
Highlighted
Contributor
Posts: 27
Registered: ‎02-17-2013
My Device: Developer-BB10
My Carrier: ---
Accepted Solution

"Please HELP!!!" How to lock an app in portrait mode?

What should I do to lock my app in portrait mode? I haven't designed it for landscape mode. So when the phone is rotated to the landscape mode, it won't work. Please help me to lock it in portrait mode.

Developer
Posts: 508
Registered: ‎01-19-2011
My Device: My Trusty Red Plane
My Carrier: Outer Space

Re: "Please HELP!!!" How to lock an app in portrait mode?

In your -app.xml, set the following flags

 

    <initialWindow>
        <content>yourGame.swf</content>

        <autoOrients>false</autoOrients>
        <aspectRatio>portrait</aspectRatio>


    </initialWindow>

 

 

That should do the trick

-----------------------------------------------------------------------
I'm a bird from outer space. But I'm not flappy o.o
Contributor
Posts: 27
Registered: ‎02-17-2013
My Device: Developer-BB10
My Carrier: ---

Re: "Please HELP!!!" How to lock an app in portrait mode?

Thank you very much!!! I hope my apps get approved at least now. :-)