I want to use the "portrait" orientation to phones and "unspecified" orientation to tablets.
I try this code in main activity, but don't works:
Is possible to set orientation to phone (= portrait) and tablet (=unspecified)?
How I can do this?
Thanks in advance for any tip.
I try this code in main activity, but don't works:
B4X:
'SupportedOrientations possible values: unspecified, landscape or portrait.
If GetDeviceLayoutValues.ApproximateScreenSize > 6 Then
#SupportedOrientations: unspecified
Else
#SupportedOrientations: portrait
End If
How I can do this?
Thanks in advance for any tip.