I have written a program and saved it as standalone for Android.
When I install the apk file on Sony Xperia Z Device and read the stack height and width I get the following numbers:
360 * 592 which is much less than the device actual screen size i.e. 1080*1920!
Stack size seems 1/3 of the real resolution.
I did my best to find an answer. But I couldn't
I highly appreciate any comment solving my problem.
Stack size on Android
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Stack size on Android
Hi Ashkan,
This will most likely be due to the pixel density of your device. LiveCode maps to the pixels scale of your device which, in your case, seems to be 3.
You can disable this automatic pixelscaling by executing the following script (e.g. on the preOpenstack script)-
Your stack should now map 1 to 1 with the pixels of your device.
Kind Regards,
Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
-
This will most likely be due to the pixel density of your device. LiveCode maps to the pixels scale of your device which, in your case, seems to be 3.
You can disable this automatic pixelscaling by executing the following script (e.g. on the preOpenstack script)-
Code: Select all
set the pixelScale to 1
Kind Regards,
Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
-
Re: Stack size on Android
I would use:
and forget about the resolution. 
Code: Select all
set the fullscreenmode of this stack to "exactfit"

Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Re: Stack size on Android
Thanks a lot. Both methods worked. They are not equal and behave differently.
I highly appreciate your contribution. Both of you.
I highly appreciate your contribution. Both of you.