I am currently developing an application for Android with HTML 5 and Phonegap. This App should be locked to the "Portrait" orientation. In this application I also want to include a selfmade "runner" Contruct 2 game (which should be locked into "Landscape" orientation).
Here is my problem:
If i set <preference name="orientation" value="portrait" /> in my config.xml (which is needed for phonegap) the Construct html-file is also locked to the "Portrait mode" and my game is shown in "portrait" mode...
If I set the orientation into "landscape" in the config.xml file my application is also set to "landscape" mode and my app looks horrible.
If the orientation is set to "default" my application also looks horrible if i activate the "switch" command at the device.
Another problem is that the config.xml orientation overwrites all my commands in the html 5 documents...
How can I manage that my Android application is set to "Portait" while my Construct 2 game which is included in the app is set to "landscape" mode?
Thanks for your help,
kind regards Davsmond