I have an app that for some screens (not all) would support portrait and landscape mode. For the remaining scenes, it would only be portrait (and portraitUpsideDown) modes.
So, I defined on the AndroidManifest to have
screenOrientation="portrait"
and I would handle the landscape modes manually (by identifying the user rotated the screen - via Orientation Runtime Listener - and then rotating the display.currentStage).
It all worked fine on Corona Simulator but when I tested on the device, I noticed that the Orientation Runtime Listener is not being called. I did some tests and I noticed that the Listener is only called when I have
screenOrientation="sensor"
Is that the normal behavior or a bug?
are you using something like this
Runtime:addEventListener( "resize", onResize )
I use that a lot and it always fires - although I manually fire it on certain events like onSystem(), showing an ad, etc.
I tried to listener for the “resize” but I got the same behavior: it was not triggering unless I used screenOrientation=“sensor”
I restored a previous commit and now it is working, so it was something in my code…
Thanks for trying to help Sphere.
are you using something like this
Runtime:addEventListener( "resize", onResize )
I use that a lot and it always fires - although I manually fire it on certain events like onSystem(), showing an ad, etc.
I tried to listener for the “resize” but I got the same behavior: it was not triggering unless I used screenOrientation=“sensor”
I restored a previous commit and now it is working, so it was something in my code…
Thanks for trying to help Sphere.