Android Question Scale on my Samsung tablet

Ricky D

Well-Known Member
Licensed User
Longtime User
I have a Samsung galaxy tab 4 10.1 and am wondering what is the scale to use with it.

Regards Ricky
 

Mahares

Expert
Licensed User
Longtime User
I have a Samsung galaxy tab 4 10.1 and am wondering what is the scale to use with it.

Run this small piece of code on your device in one of your project, you will see in the logs, the sacle, density, dimensions, etc.
B4X:
If 100%x > 100%y Then Log("Landscape") Else Log("Portrait")
    Dim lv As LayoutValues = GetDeviceLayoutValues
    Log(lv & ", size = " & lv.ApproximateScreenSize)
    Log("H:" & lv.Height & "    W:" & lv.Width)
Welcome back Rickey. It has been a few years since we heard from you. I hope the Taxi business is treating you well.
 
Upvote 0

Ricky D

Well-Known Member
Licensed User
Longtime User
Run this small piece of code on your device in one of your project, you will see in the logs, the sacle, density, dimensions, etc.
B4X:
If 100%x > 100%y Then Log("Landscape") Else Log("Portrait")
    Dim lv As LayoutValues = GetDeviceLayoutValues
    Log(lv & ", size = " & lv.ApproximateScreenSize)
    Log("H:" & lv.Height & "    W:" & lv.Width)
Welcome back Rickey. It has been a few years since we heard from you. I hope the Taxi business is treating you well.
Thanks. It's getting worse
 
Upvote 0

Ricky D

Well-Known Member
Licensed User
Longtime User
Run this small piece of code on your device in one of your project, you will see in the logs, the sacle, density, dimensions, etc.
B4X:
If 100%x > 100%y Then Log("Landscape") Else Log("Portrait")
    Dim lv As LayoutValues = GetDeviceLayoutValues
    Log(lv & ", size = " & lv.ApproximateScreenSize)
    Log("H:" & lv.Height & "    W:" & lv.Width)
Welcome back Rickey. It has been a few years since we heard from you. I hope the Taxi business is treating you well.
Where is the scale there? I know the other things
 
Upvote 0

Mahares

Expert
Licensed User
Longtime User
Run the code @Ricky D Look at the logs. You will see something like this. This is for my Tab A 7 inch of course:
Portrait
800 x 1280, scale = 1.3312501 (213 dpi), size = 7.086558440422683
H:1280 W:800
 
Upvote 0
Top