LC Commercial + Mobile Development

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
gpearson
Posts: 84
Joined: Wed Feb 03, 2010 12:55 pm

LC Commercial + Mobile Development

Post by gpearson » Fri Aug 02, 2013 8:35 pm

I have spent all day trying to get LC Commercial 6.x to deploy an application on Android Simulator without any success. I have tried every version up to the current 6.1.1-rc1 with the same result. I have even downloaded the Community Version on the same machine and was able to get a sample application to install in the simulator but unable to run a stack with no script or with just a button on the stack. In the simulator it says "The application Sample (process com.company.sampleapp1) has stopped unexpectedly. Please try again. And I can not get past this error message.

I also learned that a stack which is created in the Commercial Version will not load up in the Community Version to try and see if the application will work on an android device.

I have posted messages in the Android forum but not sure where else to turn to figure out what might be going on.
---
Graham Pearson
Goshen, IN USA

We Are Closed Today is your single internet resource for Indiana Area School Closings, Visit http://www.weareclosedtoday.com

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

Re: LC Commercial + Mobile Development

Post by dave.kilroy » Sat Aug 03, 2013 12:43 am

Hi Graham

A stack built in 'commercial' should run in 'community'. Does your stack make use of any password-protected libraries? Is your stack password-protected?

Regarding getting your app to run on Android, does it build OK? Got your certificate signings sorted out? Are you by any chance including any external or anything that is used for an iOS version of the app? (I understand including iOS specific things in an Android-focused app can lead to the app not being loaded). What version of Android are you building for? Is the simulator a corresponding version. I'm not sure but I think the earliest version of Android will build for is 2.2. Is your Android SDK complete, whole and healthy, and up to date?

Might the app be relying on something (local resource, connection to a database etc) that will be in a different place on a real device than on your development machine? Have you managed location of any bundled resources for where they should be on an Android device?

Can you check values of any variables/constants needed in preopenstack - can you debug right up to the error message to get any clues where the problem lies?

That's all I can think of for now - tell us how you get on

Dave
"...this is not the code you are looking for..."

gpearson
Posts: 84
Joined: Wed Feb 03, 2010 12:55 pm

Re: LC Commercial + Mobile Development

Post by gpearson » Sat Aug 03, 2013 1:09 am

My stack that was created in Commercial is not Password Protected. However it does use Zygodact Registration System which might be the cause of it not working in the Community Version of the IDE.

The Application I am trying to play with for Android is a Single Stack (New Stack) with a Single Card and having a single label that says Hello World. I just downloaded the Android SDK today and had it download Android 2.3.3 (API 10), Android 2.2 (API 8) and Android 2.1 (API 1) only. When in the commercial IDE, I never get the Android Icon to highlight when I am in the Standalone settings. I have modified the Mobile Support and pointed it to my Android SDK Root which does give me a JDK Path. I have even moved the Android SDK to other directories to rule out a permission issue under Windows XP


I just do not understand why in the Commercial Version 6.x after modifying the Mobile Support, the Android Option does not light up in Standalone Settings.




dave.kilroy wrote:Hi Graham

A stack built in 'commercial' should run in 'community'. Does your stack make use of any password-protected libraries? Is your stack password-protected?

Regarding getting your app to run on Android, does it build OK? Got your certificate signings sorted out? Are you by any chance including any external or anything that is used for an iOS version of the app? (I understand including iOS specific things in an Android-focused app can lead to the app not being loaded). What version of Android are you building for? Is the simulator a corresponding version. I'm not sure but I think the earliest version of Android will build for is 2.2. Is your Android SDK complete, whole and healthy, and up to date?

Might the app be relying on something (local resource, connection to a database etc) that will be in a different place on a real device than on your development machine? Have you managed location of any bundled resources for where they should be on an Android device?

Can you check values of any variables/constants needed in preopenstack - can you debug right up to the error message to get any clues where the problem lies?

That's all I can think of for now - tell us how you get on

Dave
---
Graham Pearson
Goshen, IN USA

We Are Closed Today is your single internet resource for Indiana Area School Closings, Visit http://www.weareclosedtoday.com

gpearson
Posts: 84
Joined: Wed Feb 03, 2010 12:55 pm

Re: LC Commercial + Mobile Development

Post by gpearson » Sat Aug 03, 2013 1:12 am

The Android SDK Manager version I am trying to use is Revision 22.0.5
---
Graham Pearson
Goshen, IN USA

We Are Closed Today is your single internet resource for Indiana Area School Closings, Visit http://www.weareclosedtoday.com

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

Re: LC Commercial + Mobile Development

Post by dave.kilroy » Sat Aug 03, 2013 2:16 am

gpearson wrote:My stack that was created in Commercial is not Password Protected. However it does use Zygodact Registration System which might be the cause of it not working in the Community Version of the IDE.
Yep that would do it - try without Zygodact...
"...this is not the code you are looking for..."

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

Re: LC Commercial + Mobile Development

Post by dave.kilroy » Sat Aug 03, 2013 2:30 am

gpearson wrote:I just do not understand why in the Commercial Version 6.x after modifying the Mobile Support, the Android Option does not light up in Standalone Settings.
Do you mean that you can't put a tick in the "Build for Android" checkbox in the Android tab of the StandAloneBuilder and that everything in that tab remains greyed-out? But that you can put a tick in it with LiveCode Community?

Are you sure you have the same settings and are pointing to the same SDK as in the community version?

Have you tried uninstalling and reinstalling with newest version - have you got 6.1.1-rc-1 Build 2006?

If you're still stuck after all that it might be time to contact support@runrev.com and see what they say...

Good luck

Dave
"...this is not the code you are looking for..."

gpearson
Posts: 84
Joined: Wed Feb 03, 2010 12:55 pm

Re: LC Commercial + Mobile Development

Post by gpearson » Sat Aug 03, 2013 2:15 pm

When I run the LC Commercial Version, I load up my sample stack with just a single card and a label field that says Hello World and under File -> Standalone Application Settings the Android Icon is Greyed Out and I am unable to select it. If I edit preferences I have my location for the Android Development SDK and it lists my JDK Path. I even tried to uninstall JDK 7 and currently have JDK 6 installed with the same result.

When I run the Community Version of Livecode pointing to the same and only directory path I have for Android Development SDK which lists the same JDK Path I am able to click on the Android Icon however in this version of Livecode, I can not get this sample stack to run.

In following the uninstall and reinstall process of LiveCode 6.1.1-rc-1 I see the Location where I select the License. In the Desktop line of the license it shows Mac, Windows, Linux but in the Mobile section it does not show anything and it does not show anything for Other. This might be the root cause of my issue.



dave.kilroy wrote:
gpearson wrote:I just do not understand why in the Commercial Version 6.x after modifying the Mobile Support, the Android Option does not light up in Standalone Settings.
Do you mean that you can't put a tick in the "Build for Android" checkbox in the Android tab of the StandAloneBuilder and that everything in that tab remains greyed-out? But that you can put a tick in it with LiveCode Community?

Are you sure you have the same settings and are pointing to the same SDK as in the community version?

Have you tried uninstalling and reinstalling with newest version - have you got 6.1.1-rc-1 Build 2006?

If you're still stuck after all that it might be time to contact support@runrev.com and see what they say...

Good luck

Dave
---
Graham Pearson
Goshen, IN USA

We Are Closed Today is your single internet resource for Indiana Area School Closings, Visit http://www.weareclosedtoday.com

gpearson
Posts: 84
Joined: Wed Feb 03, 2010 12:55 pm

Re: LC Commercial + Mobile Development

Post by gpearson » Sat Aug 03, 2013 3:10 pm

I am in the process of contacting support but when I use the online activation process it gives me the following image. I have also tried to do the offline license file and in every browser I get a 0 byte file so something is not right.
Attachments
Livecode License Image.png
---
Graham Pearson
Goshen, IN USA

We Are Closed Today is your single internet resource for Indiana Area School Closings, Visit http://www.weareclosedtoday.com

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

Re: LC Commercial + Mobile Development

Post by dave.kilroy » Sat Aug 03, 2013 4:04 pm

Hi Graham

OK you definately have something wrong with your licensing (see attached screen-shot of what I see when activating LC) so you do need Heather's help at RunRev (they are usually very good at customer care)

It also may be useful to search the forum/uselist for 'licencing problems' to see what other people are doing about it - good luck!

Dave
Attachments
Screen Shot 2013-08-03 at 15.54.45.png
"...this is not the code you are looking for..."

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

Re: LC Commercial + Mobile Development

Post by dave.kilroy » Sat Aug 03, 2013 4:09 pm

It's been quite a few months since I built an Android app so am a bit rusty on all the details - can you give more details on what you're getting?

Dave
"...this is not the code you are looking for..."

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

Re: LC Commercial + Mobile Development

Post by jacque » Sat Aug 03, 2013 4:58 pm

Just to toss in a summary here: Zygodact is password protected, so it won't work in the Community version of LiveCode, as Dave said. Remove the Register stack and everything should be fine after you get the licensing fixed. From your screenshot, it looks like your license isn't registered for mobile, so RR support needs to sort that out.

Zygodact is not supported on mobile devices. Apple won't allow custom registration schemes, so it is worthless on iOS. Technically it may work on Android, but due to the differences in Android devices, Zygodact is not foolproof there. It can provide a modest amount of security for honest people, but is not as strong as it is on desktop machines and I can't guarantee that it will be useful there.

For those reasons, I don't support Zygodact for use on mobile devices.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply