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?
<initialWindow>
<aspectRatio>portrait</aspectRatio>
<autoOrients>false</autoOrients>
<systemChrome>none</systemChrome>
<transparent>false</transparent>
</initialWindow>
Thanks for any assistance.
Roger
Solved! Go to Solution.
06-05-2012 03:53 PM
Hi there,
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.
Cheers,
Martin
06-05-2012 04:50 PM
Hi Martin,
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?
Thanks
Roger
06-06-2012 07:52 AM
Roger,
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?
Martin
06-08-2012 08:56 AM
Hi Roger,
Have you made any progres on this?
Martin
06-08-2012 09:03 AM
Hi Martin,
I'm hoping my tech guy has a solution, been told he has, so hope to implement, test and resubmit today.
Thanks for your support
Roger
06-08-2012 11:03 AM
Have you looked at:
navigator_set_orientation()
navigator_rotation_lock()
?
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
Hi All,
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.
Regards
Roger
01-17-2013 11:56 AM
I know this post is a bit old. But if you found the solution it would be much appreciated as we're having the same issue.