Ricky D Well-Known Member Licensed User Longtime User Mar 16, 2012 #1 I have a Samsung Galaxy s2 running Android 2.3.6 I am wondering what the variant settings for this phone is? I am redeveloping my work app to landscape. regards, Ricky
I have a Samsung Galaxy s2 running Android 2.3.6 I am wondering what the variant settings for this phone is? I am redeveloping my work app to landscape. regards, Ricky
JonPM Well-Known Member Licensed User Longtime User Mar 16, 2012 #2 What are the screen specs? Sent from my DROIDX Upvote 0
Ricky D Well-Known Member Licensed User Longtime User Mar 16, 2012 #3 800x480 in portrait or 480x800 in landscape how do i find out the scale? regards, Ricky Upvote 0
Ricky D Well-Known Member Licensed User Longtime User Mar 16, 2012 #4 I found on Wikipedia that it's 800x480 at 218 ppi WVGA So what is the scale? regards, Ricky Upvote 0
Ricky D Well-Known Member Licensed User Longtime User Mar 16, 2012 #6 Thanks Timo. How is that calculated? Regards, Ricky Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Mar 16, 2012 #7 The possible scales are: 0.75 (not common), 1 (mostly tablets) , 1.5 and 2. Upvote 0
Ricky D Well-Known Member Licensed User Longtime User Mar 16, 2012 #8 So how do I find out which one? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Mar 16, 2012 #9 Galaxy S2 is 1.5 (1.5 * 160 = 240 dpi). The easiest way is to call: Msgbox(GetDeviceLayoutValues, ""). Upvote 0
Galaxy S2 is 1.5 (1.5 * 160 = 240 dpi). The easiest way is to call: Msgbox(GetDeviceLayoutValues, "").
nfordbscndrd Well-Known Member Licensed User Longtime User Mar 16, 2012 #10 Ricky D said: Thanks Timo. How is that calculated? Click to expand... See the Documentation. The first paragraph of this link explains how to calculate a device's scale. Upvote 0
Ricky D said: Thanks Timo. How is that calculated? Click to expand... See the Documentation. The first paragraph of this link explains how to calculate a device's scale.
Ricky D Well-Known Member Licensed User Longtime User Mar 17, 2012 #11 ok now I'm lost. I did this : B4X: Msgbox(GetDeviceLayoutValues, "") as the only piece of code in my new app and it returns 480 x 800, scale = 1.5 (240 dpi) But all web sites with S2 specs says dpi is 218 which equates to 1.3625 scale What should I put in? regards, Ricky Upvote 0
ok now I'm lost. I did this : B4X: Msgbox(GetDeviceLayoutValues, "") as the only piece of code in my new app and it returns 480 x 800, scale = 1.5 (240 dpi) But all web sites with S2 specs says dpi is 218 which equates to 1.3625 scale What should I put in? regards, Ricky
T timo Active Member Licensed User Longtime User Mar 17, 2012 #12 Scales are as Erel told you. There isn't any interpolation in between. 1.3625 is 1.5. Upvote 0