Page 1 of 1

hello android

Posted: Sun Jul 29, 2012 6:27 pm
by SimpleLife
i'm having lots of roadblocks here, to my first android app.

really basic stuff!

what screen size do i use?
how does livecode cope with multiple sized screens?

cdm push notifications :cry: has been redundant since april 2012
it's now august.
why is runrev sleeping over it's documentation and implementation?

is there not a single android example that compiles and runs on an android, that copes with these basic issues?

Re: hello android

Posted: Sun Jul 29, 2012 8:10 pm
by jacque
It doesn't really matter what size you make the stack when developing for mobile. Your stack will automatically resize to fit the device screen. I usually just develop with a generic rectangle of 480x800 so I can get an idea of how layout should look.

To accomodate different device resolutions you'll need to write a resizing handler that responds to the resizeStack message. It should reposition and/or resize the card objects dynamically. Usually it works best to resize objects based on a ratio; i.e., a high resolution display would be twice the ratio of a lower one. It takes some experimenting to figure out good ratios. There is a discussion on the mailing list right now about easier ways to accomplish this with the goal being a generic library we can all use. Nothing is set up yet, though Chipp Walters has a free opensource library that will do basic resizing (but not repositioning,) based on work by Ken Ray. I've downloaded the stack but I no longer have the link; maybe someone else here does.

There is a lesson in the RR developer site about accomodating different resolutions:
http://lessons.runrev.com/s/lessons/m/4 ... esolutions

Re: hello android

Posted: Mon Jul 30, 2012 7:22 am
by Nick Johnson
Below is the link of one of the best tutorial for android app development.......

www cs.uiuc.edu/class/fa09/cs425/mps/tutorial.pdf

Re: hello android

Posted: Mon Jul 30, 2012 2:40 pm
by Klaus

Re: hello android

Posted: Mon Jul 30, 2012 5:57 pm
by jacque
Looks like a good generic tutorial, but it doesn't explain how to use LiveCode to create an android app.