GLBasic forum

Main forum => Beta Tests => Topic started by: Kitty Hello on 2013-Jun-08

Title: DPI for Samsung Galaxy S4
Post by: Kitty Hello on 2013-Jun-08
Hi,
Has anyone got such a device to test?
Can you use V11 and tell me what Platforminfo$("DPI") returns?

Many thanks
Title: Re: DPI for Samsung Galaxy S4
Post by: Jonás Perusquía on 2013-Jun-11
It has to be a Samsung Galaxy S4? because my current device is a Samsung Galaxy Ace, and i plan to buy a INCO QUOS tablet with Android 4.2
Title: Re: DPI for Samsung Galaxy S4
Post by: Marmor on 2013-Jun-11
Maybe its better to create a app and host it on a server .
Many friends have many devices but cant give it you for testing .
Send the result as email after testing is imho ok .
Title: DPI for Samsung Galaxy S4
Post by: Kitty Hello on 2013-Jun-17
someone with that device complained about tiny buttons. But myGCK should be DPI aware now. I might send him an debug app. Or, we should make one "Platforminfo" App for people who complain, that give us the proper information we need.
Title: Re: DPI for Samsung Galaxy S4
Post by: spacefractal on 2013-Jun-17
as im a aware, its should return 0.50 -> 2.00 (not remember correctly)?

Howover also alternative, you could do possible let user resize thier buttons in a option, so eventuelly tiny button (or ther other way) could have been fixed by user.... Some times im have seen, even in correct size, im fell they sometimes is too big. That can ben pretty annoying.
Title: R: DPI for Samsung Galaxy S4
Post by: PaLe on 2013-Jun-18
Hi,
glb 11.414 return a strange result = 1 on  1080x1920 desktop ...

this is the simple code that I use:

// --------------------------------- //
// Project: TEST
// Start: Tuesday, June 18, 2013
// IDE Version: 11.414


SETCURRENTDIR("Media") // go to media files

TYPE coord
   x
   y
ENDTYPE

LOCAL desk AS coord
LOCAL font AS coord

LOADFONT "smalfont.png" ,0
SETFONT 0
GETFONTSIZE  font.x, font.y

GETDESKTOPSIZE desk.x, desk.y

LOCAL dpi$ = PLATFORMINFO$("DPI")

PRINT "  X: " + desk.x, 0, font.y
PRINT "  Y: " + desk.y, 0, font.y * 2

PRINT "DPI: " + dpi$ , 0, font.y * 4


SHOWSCREEN

MOUSEWAIT

Inviato dal mio GT-I9505 con Tapatalk 2

Title: Re: DPI for Samsung Galaxy S4
Post by: spacefractal on 2013-Jun-18
1 = no scaling. You cant scaling on a desktop, that why you get that number. on Android the number you get is not DPI(if he uses DisplayMetrics), but more the scaling factor you should use, so DPI its self as name is a bit wrong. Howover im do have some trouble doing that in Greedy Mouse, due im used scaling in the other way, howover butttons is resizeable, so no big deal....
Title: Re: DPI for Samsung Galaxy S4
Post by: PaLe on 2013-Jun-19
damn my English!
spacfractal I'm sorry, I should not write "strange" (strange).
I answered Gernot on command on S4, but I did not know because it is the first time I use the beta version V11.

Anyone who needs to test on S4 (4.2.2), I am available .

Regards
Title: Re: DPI for Samsung Galaxy S4
Post by: erico on 2013-Jun-19
 :offtopic:
Quote from: PaLe on 2013-Jun-19
...
Anyone who needs to test on S4 (4.2.2), I am available .
...

Super thanks PaLe! I might come to pester you on the offer. :good:
Title: Re: DPI for Samsung Galaxy S4
Post by: Kitty Hello on 2013-Jun-19
The S4 returned 1? Like "ONE"? Or the windows desktop?
Can you send me the console output of the Android log?
Title: R: DPI for Samsung Galaxy S4
Post by: PaLe on 2013-Jun-19
yes ONE .

how I do kitty ?

Inviato dal mio GT-I9505 con Tapatalk 2

Title: Re: DPI for Samsung Galaxy S4
Post by: Jonás Perusquía on 2013-Jun-19
Gonna test the command on Android to see what it returns
Title: Re: DPI for Samsung Galaxy S4
Post by: MrTAToad on 2013-Jun-19
Could someone create a program which lists all values returned from PLATFORMINFO$ and stick it in the Play store - would save everyone some time then!
Title: Re: DPI for Samsung Galaxy S4
Post by: bigsofty on 2013-Jun-20
Quote from: Kitty Hello on 2013-Jun-17
someone with that device complained about tiny buttons. But myGCK should be DPI aware now. I might send him an debug app. Or, we should make one "Platforminfo" App for people who complain, that give us the proper information we need.
Similarly, I have a nexus 10 and the GACK GUI is minuscule on it (10%'ish of the screen area), making it unusable unfortunately.
Title: Re: DPI for Samsung Galaxy S4
Post by: Jonás Perusquía on 2013-Jun-20
I confirm that on Samsung Galaxy Ace (Android 2.3.7)(3.5")(hvga)(320x480) the PLATFORMINFO$("DPI") returns "1"

On desktop compuer with Windows 7 (18")(1366x768) the PLATFORMINFO$("DPI") returns "96"
Title: Re: DPI for Samsung Galaxy S4
Post by: MrTAToad on 2013-Jun-21
This is the result of running it in the Android 4.1 emulator
Title: Re: DPI for Samsung Galaxy S4
Post by: PaLe on 2013-Jun-21
Sorry 4 quality...


Quote from: Kitty Hello on 2013-Jun-19
The S4 returned 1? Like "ONE"? Or the windows desktop?
Can you send me the console output of the Android log?
Gernot, I'm sorry but I do not understand really how to do. With the GLB or on the device?