Reputation: 13899
I am developing an AIR application (no flex, pure as3) for Android in Intellij IDEA, but I cannot find a way to disable orientation change. I remember when I was using flex builder, I could just tick a checkbox somewhere in the preferences and it updated the descriptor XML file with some lines. I cannot find the necessary lines and the actual XML file though.
How can be the orientation locked in portrait?
Thanks
Upvotes: 0
Views: 111
Reputation: 13899
Silly me.
It is a little bit cryptic, but here's how you do it:
File > Project Structure
(cmd
+;
on Mac)Modules
on the left paneAndroid
or iOS
tab, depending on what you want to create a descriptor file forCustom template
Create
buttonCreate
and that's it!Upvotes: 0
Reputation: 369
Open "YourAppname-app.xml" in the default src folder. Search for "autoOrients" and set it's value to "false". Then go for "aspectRatio" and set it to "portrait".
Some of the values might be commented out, so you might need to remove the comment around it first.
Upvotes: 1