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

Java Development

Reply
Developer
kmchong
Posts: 16
Registered: ‎02-03-2010
My Device: Storm2
My Carrier: Verizon

Force Storm Orientation:

Hey there!

   Newbie question here, sorry if this has been answered. I want to programatically force the Storm to be in Portrait or Landscape mode. I scanned through a lot of docs here and it all seems to point to the fact that I have to actually turn the Storm itself, not something I was looking for. Any help appreciated.

 

Kenn.

Please use plain text.
Developer
JCarty
Posts: 1,055
Registered: ‎01-25-2009
My Device: BlackBerry Bold 9650/BlackBerry Torch 9800

Re: Force Storm Orientation:

Check out this knowledgebase article:

 

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/...

Jerome Carty - Follow jcarty on Twitter@jcarty | #webworks-dev / #BlackberryDev on irc.freenode.net | My Apps
Click "Accept as Solution" if post solved your original issue.. Give like/thumbs up if you feel post is helpful
Please use plain text.
Developer
PoojaMaheshwari
Posts: 141
Registered: ‎02-10-2010
My Device: 9500
My Carrier: Airtel

Re: Force Storm Orientation:

You can force the direction using (eg. LANDSCAPE):

        Ui.getUiEngineInstance().setAcceptableDirections( Display.DIRECTION_LANDSCAPE );

Please use plain text.