Is there a way to allow landscape only on a large device?
I can set the manifest.xml file for the activity for rotation based on the sensor, for example android: screenOrientation = "sensor", but this does not provide the behavior I would like.
For instanced, I would like to allow the user to switch to landscape mode on the tablet device, but not on the device of lower resolution (because the user interface will look awful).
From what I can say, there is no way to dynamically react (for example, at runtime) if the orientation is acceptable. Or is there?
Am I missing something? Thanks in advance!
source share