How to lock screen orientation in android for specific pages? In iOS I am able to lock screen orientation for specific pages. Can anyone help me on how to lock screen orientation for specific pages in android?


#1

How to lock screen orientation in android for specific pages? In iOS I am able to lock screen orientation for specific pages. Can anyone help me on how to lock screen orientation for specific pages in android?


#2

I assume you are using the supersonic.ui.screen.setAllowedRotations call? That’s unfortunately not available on Android due to OS limitations – you cannot change allowed screen rotations during runtime. You should be able to use supersonic.ui.screen.rotateTo to force a rotation, but the user will be able to rotate it back. If you build a custom Android binary through our Build Service, you can set a different set of allowed rotations for the whole app but again, view-level control is not available.


#3

Thanks for the reply Harri . Appreciate your effort