Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("1")
' < 4.5
If GetDeviceLayoutValues.ApproximateScreenSize < 4.5 Then
Label2.Text = "ApproximateScreenSize: " & GetDeviceLayoutValues.ApproximateScreenSize
' > 4.5 e < 8
Else If GetDeviceLayoutValues.ApproximateScreenSize > 4.5 AND GetDeviceLayoutValues.ApproximateScreenSize < 8 Then
Label2.Text = "ApproximateScreenSize: " & GetDeviceLayoutValues.ApproximateScreenSize
'Tablet > 8
Else If GetDeviceLayoutValues.ApproximateScreenSize > 8 Then
Label2.Text = "ApproximateScreenSize: " & GetDeviceLayoutValues.ApproximateScreenSize
End If
End Sub