Should there be options besides iPhones under File | New Stack?

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

Moderators: heatherlaine, Klaus, FourthWorld, robinmiller, kevinmiller

Post Reply
exmaria
Posts: 4
Joined: Wed Jan 31, 2018 3:54 pm

Should there be options besides iPhones under File | New Stack?

Post by exmaria » Wed Jun 20, 2018 5:56 pm

This is probably a dumb question, because I can't seem to find any info whatsoever on it, either here or via googling, but...

When I go to File and choose New Stack, all I see are "default," a bunch of iPhones, and "script only stack." Is there not a way to add other phone-spec options to this menu, if one is trying to develop for Android and not iPhone?

Thanks in advance for any clues... : )

Klaus
Posts: 10425
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Should there be options besides iPhones under File | New Stack?

Post by Klaus » Wed Jun 20, 2018 6:10 pm

Hi exmaria (what's your new name? :-) ),

this is in fact possible, but demands that you mess around with the LC IDE Stacks inside of the application folder.

But since this will be gone with the next version, I recommend to just create a stack of any size and then set its
desired width and height in the inspector for this stack.

Best

Klaus

exmaria
Posts: 4
Joined: Wed Jan 31, 2018 3:54 pm

Re: Should there be options besides iPhones under File | New Stack?

Post by exmaria » Sun Jul 22, 2018 2:35 pm

Thanks for the response! My opportunities to work on this have been quite irregular at the moment, so only now getting back to my attempts at Android setup, which have been more daunting than expected (I'm currently getting a crash-on-startup on the Android emulator, for a one-button "hello world" app : P ; ) ). I am all for waiting for problems to go away by themselves in future updates ; ) -- when you say "this will be gone with the next version," what is actually going away, and when is the next version expected, to which you refer?

Thanks again : )

Klaus
Posts: 10425
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Should there be options besides iPhones under File | New Stack?

Post by Klaus » Sun Jul 22, 2018 2:39 pm

Hola exmaria,
when you say "this will be gone with the next version," what is actually going away, and when is the next version expected, to which you refer?
I mean, if you NOW "hack" into the IDE of the current version to have more option in the "New Stack" menu,
then this will be gone in the next version of LC. whenever this will be releaed. Get the picture?

You could create a little plugin which can do what you want.


Best

Klaus

bogs
Posts: 2312
Joined: Sat Feb 25, 2017 10:45 pm

Re: Should there be options besides iPhones under File | New Stack?

Post by bogs » Sun Jul 22, 2018 3:47 pm

Hola!

Excuse my ignorance in this area (I do nothing with mobile at all), but I had assumed (yah, that word again) that the different "i" device listings were the equivalent of different android device listings (or close).

Although I find specifying "iPhone x" a poor idea in that menu, they do present the size the stack will be as well. Why would you need to double the size of the list to present all the same sizes with "Android x" next to it?
Selection_003.png
Default Menu...
As well, I think it has something to do android devices not being sized by name, but again, I think the "iPhone" part could have been left out or replaced with "Mobile" and "Tablet", or alternately, just leave the resolutions for stack size which, oddly enough, is similar to how Hypercard itself listed them.
Selection_004.png
To something like...
Image

exmaria
Posts: 4
Joined: Wed Jan 31, 2018 3:54 pm

Re: Should there be options besides iPhones under File | New Stack?

Post by exmaria » Sun Jul 22, 2018 7:56 pm

Ah, I see - thanks for the info!

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 6180
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Should there be options besides iPhones under File | New Stack?

Post by FourthWorld » Sun Jul 22, 2018 8:30 pm

TBH I don't know why the IDE still has device-specific stack sizes. Even iOS has expanded enough to make it impractical to hand-craft different layouts for each device, and with the wide range of choices available to Android users it would be impossible to try.

Fortunately, no one does that anymore, made unnecessary by the excellent work the LC engine team did with implementing resolution independence.

Now most folks just make one stack that responds to the device its running on.
Richard Gaskin
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4673
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Should there be options besides iPhones under File | New Stack?

Post by jacque » Mon Jul 23, 2018 6:02 pm

@bogs, Android sizes don't correspond to iPhone sizes and there are dozens of different ones. Every manufacturer has their own idea about size and resolution. However Android does provide a limited number of named ones for the most common ratios. If LC were to add Android options to the menu, those would probably be the ones to choose.

But that wouldn't solve the problem where users think those are the only sizes they can choose. And we'd get lots of questions about how to choose a size for cross platform apps when the two are different. My own preference would be to go back to the old way where the default size is always created and the user resizes it on their own.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

bogs
Posts: 2312
Joined: Sat Feb 25, 2017 10:45 pm

Re: Should there be options besides iPhones under File | New Stack?

Post by bogs » Mon Jul 23, 2018 7:59 pm

jacque wrote:
Mon Jul 23, 2018 6:02 pm
However Android does provide a limited number of named ones for the most common ratios.
Ah, from the outside looking in, I thought most of the phones/tablets came in a set number of sizes that were at least similar. I should have known better :wink:

I'm of two minds on the size offerings in the menu myself. Since I only work with desktops/laptops, and then within a certain size almost constantly, I don't often have to do any resizing. However, I know there are (usually) a range of sizes that are more commonly used than not, just like in the days of yore when HC came around, it is sometimes nice to have some of those common set sizes just at a click, so either road is ok with me.

Your point has a lot of validity to it, but if you *really* want to go back to the OLD way, welcome to the future past, cause we are already there :mrgreen:
Selection_003.png
BACK to the FUTURE!! Hypercard episode...
Image

Post Reply

Return to “Android Deployment”