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.