Following the layout, I do not want to allow the application format tablet.
What the best solution for you?
This ?
What the best solution for you?
This ?
B4X:
Dim height As Int
If GetDeviceLayoutValues.ApproximateScreenSize < 6 Then
'phones
If 100%x > 100%y Then height = 32dip Else height = 50dip
ToastMessageShow("Compatible", False)
Activity.Title = "Compatible"
Else
'tablets
height = 90dip
Msgbox("Incompatible","Attention !")
Activity.Finish
End If
Last edited: