how to determine the resolution of the device

billy047

Member
Licensed User
Longtime User
Hello good day, I can not find how to determine the resolution of the device, to load the corresponding layout.

Thanks in advance
 

moster67

Expert
Licensed User
Longtime User
try using GetDeviceLayoutValues which returns the device LayoutValues.

B4X:
Dim resolution As String
resolution=GetDeviceLayoutValues

If resolution.IndexOf("240 x 320") <> -1 Then
   'do something
end if
 
Upvote 0

billy047

Member
Licensed User
Longtime User
Thanks to everyone for sharing their knowledge, I will review all the information you have provided me, again thank you very much.
Guillermo
 
Upvote 0
Top