I think I'm misunderstanding something..
I want the following :
On phones, portrait only.
On tablets, both.
I was thinking that if I detect phones or lower resolution devices, I can set those to Portrait Only otherwise both..? Or does it not work like this? I'll give it a test tonight..
ETA :
Ah ha! Done
I left it as Portrait only, then detected the screen height and also checked the scale - as some tablets are 800 and my phone is 800, but 1.5d pixel density. Tablet rotates, but phone doesn't!
Dim resolution As Int
Dim p As Phone
resolution=GetDeviceLayoutValues.Height
If resolution > 800 Then
p.setscreenorientation(-1)
Else If resolution = 800 Then
Dim scale As String
scale=GetDeviceLayoutValues.Scale
If scale = "1.0" Then
p.setscreenorientation(-1)
End If
End If
:sign0060: