Hi,
I have an android/iOS game which needs to switch between portrait and landscape if the user rotates as it supports both orientations. However it seems that this isn’t respecting the rotation lock in android (there’s a OS setting which should lock the phone to a specific orientation). Is there something in lime which should support this does anyone know?
Thanks,
Greg
Ok, I have done some research and it seems that SDLActivity.java has setOrientationBis() which sets the actual orientation. This is currently using things like:
SCREEN_ORIENTATION_SENSOR_PORTRAIT
Whereas the alternative is to use the “user” variations:
SCREEN_ORIENTATION_USER_PORTRAIT
in order to respect the current auto rotate setting on the device. I have tested and confirmed this. It doesn’t seem like this is something which is currently supported, though I guess it could be added as an extra option.