Hi there,
If someone could help....
I am using the GetDevicePhysicalSize and the return value for one tablet that I have here is strange....
I returns size as 7.89 (I suppose Inch) and it is a 10inch tablet!!
GetDeviceLayoutValues returns 1024 x 720 scale = 1 (160dpi)
Eventually the calculation is right, however this tablet is for sure a 10inch.
What is wrong?
Thank you !
If someone could help....
I am using the GetDevicePhysicalSize and the return value for one tablet that I have here is strange....
B4X:
Sub GetDevicePhysicalSize As Float
Dim lv As LayoutValues
lv = GetDeviceLayoutValues
Dim size As Float = Sqrt(Power(lv.Height / lv.Scale / 160, 2) + Power(lv.Width / lv.Scale / 160, 2))
Return size
End Sub
I returns size as 7.89 (I suppose Inch) and it is a 10inch tablet!!
GetDeviceLayoutValues returns 1024 x 720 scale = 1 (160dpi)
Eventually the calculation is right, however this tablet is for sure a 10inch.
What is wrong?
Thank you !