LC ver 6.5 dp 2 on Samsung GALAXY S4 - Solved

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
DR White
Posts: 686
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

LC ver 6.5 dp 2 on Samsung GALAXY S4 - Solved

Post by DR White » Thu Oct 31, 2013 11:01 am

Has anyone been successful with the “resolution independence” feature in opening an app with a 768 by 1024 card using LC version 6.5 dp 2 on a Samsung GALAXY S4?

I read the release notes, but they really were not that specific.

My experience was that the card was several times larger than the Samsung screen.

If someone has had success in this area, please explain how you did it.

Thanks,

David
Last edited by DR White on Thu Oct 31, 2013 10:40 pm, edited 2 times in total.

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: LC version 6.5 dp 2 on a Samsung GALAXY S4

Post by Mag » Thu Oct 31, 2013 5:40 pm

Hi David, have you set the fullscreenmode?

Example:

Code: Select all

on preOpenStack
    set the fullscreenmode of me to "exact fit"
preOpenStack
PS
- empty (default) - the existing behaviour - the stack is resized (not
scaled) to fit the screen.
-“ exact fit" - scale the stack to fill the screen. This will stretch the
stack if the aspect ratio of the screen does not match that of the stack.
-“ show all" - scale the stack preserving aspect ratio so all content is
visible. Some blank space may remain if the screen & stack aspect ratios do
not match.
-“ no border" - scale the stack to fill the screen preserving aspect ratio.
If the stack & screen aspect ratios do not match, the left / right or top /
bottom extremes of the stack will not be visible.
-“ no scale" - the stack will not be scaled, being centered on the screen
instead.

DR White
Posts: 686
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: LC version 6.5 dp 2 on a Samsung GALAXY S4

Post by DR White » Thu Oct 31, 2013 8:57 pm

Mag,

I saw that, but I did not know exactly how to use it.

I thought it automatically would get the platform and device display size, when it opened.

I played with the fullscreenmode settings, but did not have it like your example.

Thank You so much for the example code (it really helps us beginners),

David

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: LC version 6.5 dp 2 on a Samsung GALAXY S4

Post by Mag » Thu Oct 31, 2013 9:38 pm

You are welcome! I also had the same problem, then I read in a post in the list that LC team has put online the source of one of their test app and I found there the code.

Stack
http://downloads.livecode.com/livecode/ ... ESINDI.zip

Post
http://runtime-revolution.278305.n4.nab ... 71443.html

DR White
Posts: 686
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: LC version 6.5 dp 2 on a Samsung GALAXY S4

Post by DR White » Thu Oct 31, 2013 10:38 pm

Mag,

I wanted to let you know that I just tried some test displays in the Samsung GALAXY S4, using the 6.5 dp2 and your suggestions
and they worked great!!!! :D

Thanks again for your time and effort,

David

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”