Page 1 of 2

iOS externals prevent testing on Android

Posted: Sun May 19, 2013 2:56 am
by Mag
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?

Re: iOS externals prevent testing on Android

Posted: Mon May 20, 2013 1:20 am
by Mark
Hi,

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

Kind regards,

Mark

Re: iOS externals prevent testing on Android

Posted: Mon May 20, 2013 1:53 am
by Mag
Hi Mark,

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

Re: iOS externals prevent testing on Android

Posted: Mon May 20, 2013 2:19 am
by Mark
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

Re: iOS externals prevent testing on Android

Posted: Mon May 20, 2013 2:27 am
by Mag
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.

Re: iOS externals prevent testing on Android

Posted: Mon May 20, 2013 3:03 am
by Mag
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

Re: iOS externals prevent testing on Android

Posted: Mon May 20, 2013 3:47 am
by Mark
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

Re: iOS externals prevent testing on Android

Posted: Mon May 20, 2013 4:56 am
by Simon
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

Re: iOS externals prevent testing on Android

Posted: Mon May 20, 2013 10:36 am
by Mark
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

Re: iOS externals prevent testing on Android

Posted: Mon May 20, 2013 1:50 pm
by Mag
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.

Re: iOS externals prevent testing on Android

Posted: Mon May 20, 2013 1:51 pm
by Mag
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.

Re: iOS externals prevent testing on Android

Posted: Mon May 20, 2013 2:00 pm
by Mark
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

Re: iOS externals prevent testing on Android

Posted: Mon May 20, 2013 2:18 pm
by Mag
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

Re: iOS externals prevent testing on Android

Posted: Mon May 20, 2013 2:50 pm
by Mark
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

Re: iOS externals prevent testing on Android

Posted: Mon May 20, 2013 3:00 pm
by Mag
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.