hello android

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
SimpleLife
Posts: 15
Joined: Sat Jul 28, 2012 6:48 pm

hello android

Post by SimpleLife » Sun Jul 29, 2012 6:27 pm

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?

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: hello android

Post by jacque » Sun Jul 29, 2012 8:10 pm

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
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Nick Johnson
Posts: 16
Joined: Fri Jun 29, 2012 8:05 am

Re: hello android

Post by Nick Johnson » Mon Jul 30, 2012 7:22 am

Below is the link of one of the best tutorial for android app development.......

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


jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: hello android

Post by jacque » Mon Jul 30, 2012 5:57 pm

Looks like a good generic tutorial, but it doesn't explain how to use LiveCode to create an android app.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply