Possible to lock orientation by given screen size? Locking orientation at runtime?

No replies
User offline. Last seen 5 years 12 weeks ago. Offline
Joined: 9 Jan 2013


In my app I'd like to be able to support portrait mode for smaller screens, and landscape / portrait for larger screens.

I can't do this by handling rotation myself - at times the software keyboard is used ( which needs to rotate with the screen, obviously )

Ideally i'd like to lock the orientation at runtime given my own conditions.

Is this possible? Many thanks!