Skip to main content
Inspiring
June 12, 2012
Question

AIR 3.3 for Android - Auto Orient not working

  • June 12, 2012
  • 5 replies
  • 1183 views

My app descriptor for an app made for android has auto orient set to true.  Compiled in 3.2, it rotates and works great.  Compiled in 3.3, the screen never rotates to landscape (start up is portrait) although does do a 180 flip to portrait upside down.

This topic has been closed for replies.

5 replies

Colin Holgate
Inspiring
June 12, 2012

There was a change in AIR 3.3. Now the Portrait you have set isn't the startup orientation, it's the permissible orientation. For most apps it's fine that it only ever runs in either portrait oe either landscape, but there will be some apps where you want to start in one orientation and yet still allow the other ones.

You could set the app to Portrait, auto orients off, and then after startup you can turn auto orients on.

mola2alexAuthor
Inspiring
June 12, 2012

So if I want it to start in portrait but allow it to auto orient, what do I need to do? 

Colin Holgate
Inspiring
June 12, 2012

You turn on auto orient with code, after the app has started.