Page 1 of 1

New LC user - Activating Android Support for Mac OSX.7.5?

Posted: Wed Jun 26, 2013 9:32 pm
by martimer
Hello,

New LC user here. Mac OSX.7.5. I have written an LC script that I am trying to deploy to a an Android platform (god knows what phone these guys have this week) and I have run in to a bit of a problem.

I am able to follow directions and so I downloaded the Java sdk and installed a bunch of stuff for it, including the 2.2 API and Android SDK Tools and Platform-Tools and Build-Tools.

I have also been able to follow directions and launch the avd manager and and create a couple of profiles. I note that these are located in the hidden .android folder.

When I try and follow the directions to locate these profiles in the Mobile Support pane, I am told that "The Chosen Folder is not a valid Android SDK. Please ensure you have installed it correctly, and enabled support for Android 2.2 (Froyo)." I see that that happens to a lot of people as there is a note about it in the instructions, BUT the directions indicate to use the "Android/android-sdk-mac_x86" folder. The folder created: "android-sdk-macosx" was created when I installed the android sdk installer BUT I do not know how to get it into the .Android folder. I also tried to use the actual folders for the profiles I added with the same result (and note that these are located in the hidden .Android folder).

Nowhere in the directions does it say how to enable support for Android 2.2. I was oh so hoping that this would happen when I activated the stuff from the Android SDK Manager.

A little help would be appreciated. I assume that certain things have to go in certain folders, but what folders and where and do I have to do something else to enable these files? I am assuming that I have to somehow unhide the /Android folder and then copy the Android/android-sdk-macosx folder there, somewhere.

Thanks.

Re: New LC user - Activating Android Support for Mac OSX.7.5

Posted: Thu Jun 27, 2013 4:21 pm
by wsamples
martimer wrote: I am assuming that I have to somehow unhide the /Android folder and then copy the Android/android-sdk-macosx folder there, somewhere.
No! All you should need to do is point LiveCode to the folder the Android SDK is installed in. In preferences, under mobile support. In your case it is the "android-sdk-macosx" folder. Don't worry about the .Android folder. That's not what you're looking for and you shouldn't do anything to it. Yes, installing 2.2 API is the same as "enabling" it.

Which version of LiveCode are you trying to use?

Re: New LC user - Activating Android Support for Mac OSX.7.5

Posted: Thu Jun 27, 2013 4:41 pm
by martimer
LC 6.0.1

Does it matter where the android-sdk-macosx folder is located?

Re: New LC user - Activating Android Support for Mac OSX.7.5

Posted: Fri Feb 28, 2014 2:15 am
by martimer
Lots of updates since this thread got started. OSX9.1 and now the commercial version of LC6.5.2.

I think I have the Froyo SDK installed - I no longer get an error. What I do get is no ability to test the Android compile. How do I get that working?

I am not an Android user and have no experience with it (I used an Android tablet two years ago for five minutes). I do not have easy access to an Android device and am trying to do at least some elementary debugging before foisting my little app on a friend for testing in the "real world".

I am almost ready to fly free. I think...

Re: New LC user - Activating Android Support for Mac OSX.7.5

Posted: Fri Feb 28, 2014 3:49 am
by Simon
Hi martimer,
You'll have to start one of the virtual devices from the AVD first. (I'd build a few more versions at least 3.3)
Make sure you have standalone setting set for Android
then Development > Test Target and select the virtual device
then test.

Simon

Re: New LC user - Activating Android Support for Mac OSX.7.5

Posted: Fri Feb 28, 2014 4:17 am
by martimer
Thanks. I think I have it working now. The only problem is that my app does not run - Its one and only button script does not actually execute.

Re: New LC user - Activating Android Support for Mac OSX.7.5

Posted: Fri Feb 28, 2014 4:33 am
by Simon
Hi martimer,
Did you need help getting it to work?
If yes, then would need a little more info. :)

Simon

Re: New LC user - Activating Android Support for Mac OSX.7.5

Posted: Fri Feb 28, 2014 10:00 am
by martimer
Somehow the line: "Put Tertiary +1 into Tertiary" no longer works. It worked in v5.5 and the free version of 6.5 but not the Commercial version of 6.5.

I will figure it out eventually. I hope.

Thanks for the offer and the help so far.