Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
06-03-2012 02:41 PM
I need my opengl based game to always be in portrait mode, but if I launch it whilst in landscape mode it fails to enter portrait, I have set the following in bar-descriptor.xml, what else do I need to do?
Thanks for any assistance.
Solved! Go to Solution.
06-05-2012 03:53 PM
Welcome to the forums!
Your XML settings seem correct at a glance - Can you try setting the option from the GUI and rebuilding your application?
(in the GUI's "Design Mode", look to the top right hand corner for a Portrait icon. Select it, save and rebuild your application).
Let me know if you are still having this issue.
06-05-2012 04:50 PM
Thanks for the reply, I went through all the settings, and it still does it, but what I didi realise is, it displays the default screen in portrait initially, and then switches back to landscape. Do I need to add code to check the screen size and rotate if in the wrong mode?
06-06-2012 07:52 AM
I understand that if you start your applicaiton in Landscape mode, it wll initially launch in portrait and switch to landscape afterwards. However, once launched, if you tilt back your application into Portrait mode, does the application change to Portrait mode?
06-08-2012 06:32 PM - edited 06-08-2012 06:34 PM
If you look at the bar-descriptor.xml into the application tab, you can set the orientation mode between auto-orient, portrait and landscape.
This is what it looks in text mode after I set it to portrait mode:
<initialWindow> <aspectRatio>portrait</aspectRatio> <autoOrients>false</autoOrients> <systemChrome>none</systemChrome> <transparent>false</transparent> </initialWindow>
06-08-2012 06:36 PM
Thanks for all your responses, this issue is now resolved and 'Football Director' has been resubmitted for approval. I havent got the answer yet from the programmer who resolved it, but if I can I will post the solution when I am told.