What variant to use?

Ricky D

Well-Known Member
Licensed User
Longtime User
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
 

Ricky D

Well-Known Member
Licensed User
Longtime User
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
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
Thanks Timo. How is that calculated?

Regards, Ricky
 
Upvote 0

Ricky D

Well-Known Member
Licensed User
Longtime User
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
Top