iOS externals prevent testing on Android

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

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

iOS externals prevent testing on Android

Post by Mag » Sun May 19, 2013 2:56 am

Hi,

i'm working on my first multiplatform mobile app. The app uses two great externals by Monte (mergPop and mergSocial). I kwow that they don't work on Android but I discover that if I leave them on the Copy Files list (on standalone Application Settings) the standalone refuse to work when I try Android testing.

So I have to delete them from the list before to test on Android, this causes problems testing an Android-iOS standalone. Maybe I missed something?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: iOS externals prevent testing on Android

Post by Mark » Mon May 20, 2013 1:20 am

Hi,

What problems do you encounter while testing an Android-iOS standalone?

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

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

Re: iOS externals prevent testing on Android

Post by Mag » Mon May 20, 2013 1:53 am

Hi Mark,

the app installs and launches but I get a black screen.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: iOS externals prevent testing on Android

Post by Mark » Mon May 20, 2013 2:19 am

Hi,

That's very little information. Can't you say anything else, e.g. does the app crash or does it appear to continue running? If you make a completely empty, new stack, does the same black screen appear? What do you have in your startUp, preOpenStack and preOpenCard handlers? Did you remove all scripts using those externals? Do you hear a beep if you put the beep command into the first line of the preOpenCard script?

Best regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

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

Re: iOS externals prevent testing on Android

Post by Mag » Mon May 20, 2013 2:27 am

Thank you for your replay Mark, your post let me the hope that all should work correctly on Android also with those externals listed in copy files... so OK I will do some more tests to learn if the problem is related with something in the code and to learnr at what point the stack freezes.

PS
And not, I don't use any external feature when the standalone runs on Android.
Last edited by Mag on Mon May 20, 2013 3:24 am, edited 1 time in total.

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

Re: iOS externals prevent testing on Android

Post by Mag » Mon May 20, 2013 3:03 am

Ok, done some testing.

I created a new mainstack
Added a button
Put an answer statement in the button
Run in Android device
All worked great

Then I add "mergPop.lcext" in the Copy Files list
Run in Android device
The app launces but before to show anything closes

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: iOS externals prevent testing on Android

Post by Mark » Mon May 20, 2013 3:47 am

Hi,

You mean, the app crashed if you include a file that shouldn't be included in the first place and not including the file solves the problem. Was this a question, or did you just want to warn people not to include iOS externals on Android?

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: iOS externals prevent testing on Android

Post by Simon » Mon May 20, 2013 4:56 am

Hi Mag,
I don't think the externals should be included if they serve no use on Android, but do you check "the platform" before getting to the externals so it does not even try to run them?

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: iOS externals prevent testing on Android

Post by Mark » Mon May 20, 2013 10:36 am

Simon,

He says he doesn't use the externals on Android. I'd assume it means he removes or otherwise disables any scripts that use those externals. It is why I asked if he removed the scripts.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

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

Re: iOS externals prevent testing on Android

Post by Mag » Mon May 20, 2013 1:50 pm

Mark wrote:Hi,

You mean, the app crashed if you include a file that shouldn't be included in the first place and not including the file solves the problem. Was this a question, or did you just want to warn people not to include iOS externals on Android?

Kind regards,

Mark
I opened the topic to learn if I it's mandatary to remove the iOS external before to test on Android. So, after this useful discussion, I leant that the replay is: yes, you have to remove the iOS externals every time you have to run a test on Android because if you leave them, on Android the app crashes, no matter if the externals are caller or not in the code, it's enough their presence.
Last edited by Mag on Mon May 20, 2013 1:52 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: iOS externals prevent testing on Android

Post by Mag » Mon May 20, 2013 1:51 pm

Simon wrote:Hi Mag,
I don't think the externals should be included if they serve no use on Android, but do you check "the platform" before getting to the externals so it does not even try to run them?

Simon
I will try to uncheck iOS in the standalone settings before to run test in Android, thanks.

Thank you Mark and Simon for the posts and help.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: iOS externals prevent testing on Android

Post by Mark » Mon May 20, 2013 2:00 pm

Hi,

But I really would like to know if you' disabled all calls to the externals, because if you didn't, the app probably encounters an execution error, which may stop it from starting properly.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

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

Re: iOS externals prevent testing on Android

Post by Mag » Mon May 20, 2013 2:18 pm

Mark wrote:Hi,

But I really would like to know if you' disabled all calls to the externals, because if you didn't, the app probably encounters an execution error, which may stop it from starting properly.

Kind regards,

Mark
Hi Mark,

yes, this is the test I done:

_____________________
I launched LC
I created a new mainstack
I added a button
I put an answer statement in the button
I run in Android device
All worked great

Then
I add "mergPop.lcext" in the Copy Files list
Run again in Android device
The app launces but before to show anything closes
_____________________

The only code in the stack is:

on mouseUp
answer "Ciao"
end mouseUp

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: iOS externals prevent testing on Android

Post by Mark » Mon May 20, 2013 2:50 pm

Hi,

I see what you did now. That's useful to know. Yes, I realise you posted this before, but it didn't get to me because of the earlier context. Thanks for making it clear.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

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

Re: iOS externals prevent testing on Android

Post by Mag » Mon May 20, 2013 3:00 pm

Thanks Mark

To be sure I did another test making sure that the checkbox iOS is unchecked on Standalone Application Settings. No change, the app crashes on startup on Android.

Post Reply