I'm trying to create an android application through build.phonegap.com
I have a folder called "myproject", hanging from it are the config.xml
and the folder www
which in turn contains the html (including the index.html
) and the folders img, css and js.
In the config.xml I have the following lines:
<!-- Customize your app and platform with the preference element. -->
<preference name="orientation" value="landscape" />
<preference name="fullscreen" value="true" />
<access origin="*"/>
The fact is that phonegap generates the apk perfectly and then the cell phone works well, however, it does not pay attention to the line:
preference name="orientation" value="landscape"
and I do not block the orientation, turning the mobile changes me the same. And what I want is for it to come out horizontally and not be changed.
Any ideas?