Porting to Android ... First Steps ...

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
paulsr
Posts: 222
Joined: Thu Jul 19, 2012 9:47 am
Contact:

Porting to Android ... First Steps ...

Post by paulsr » Mon Jan 20, 2014 8:23 am

Greetings:

I'm having my first attempt to port an app from iOS to Android, and don't seem to be able to get started. No doubt there is something I've forgotten to do!

I'm using LC6.5.1 & Java 1.7 on Windows XP.

In Preferences->Mobile Support I have set the Location of the Android development SDK root, and I am seeing a JDK Path shown. So I assume so far so good.

Next, I saw an instruction that says "Make sure the SDK Manager is running." To do this I started eclipse.exe then selected Window->Android SDK Manager. I assume that means the manager is now running.

I also went to the Android Virtual Device Manager and created a test device. This is shown with a green check mark so I assume that's okay.

In LC I selected Build for Android, and Sign for development only. I updated the Label, Identifier and Version Name fields. Did I miss anything?

But...

If I Save as Standalone Application, LC says it's done it successfully, but I end up with an empty directory.

If I try to test on an emulator, I find the Development->Test Target selection in LC is grayed-out.

So, I'm kinda stuck.

What did I miss???

TIA...

--paul

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

Re: Porting to Android ... First Steps ...

Post by jacque » Mon Jan 20, 2014 7:02 pm

I'm not sure what you missed, but maybe this will help.

In LiveCode prefs make sure the mobile SDK path points to the folder that encloses everything, not to one of its subfolders. On my Mac that path ends with "/android-sdk-macosx", it will probably say Windows on your machine.

You need to have a virtual device loaded and running before you start up LiveCode, so after you've set the path correctly, quit LiveCode and get a VM going.

Relaunch LiveCode and set a test target in the Development menu. Your virtual machine should be listed there. If it isn't, there may be an issue with the version of Java you're using. I can't remember the specifics because it's a Windows-only issue but maybe someone else here remembers. I vaguely recall something about needing Java 1.6, you might search the forums here to see if I've got that right.

If you can set a test target, you should be ready to go. Click the Test button.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

paulsr
Posts: 222
Joined: Thu Jul 19, 2012 9:47 am
Contact:

Re: Porting to Android ... First Steps ...

Post by paulsr » Tue Jan 21, 2014 10:45 am

Many thanks Jacqueline ... helpful info, but I seem to have spent the day going round in circles without achieving anything.

On my PC, I've tried various version of Java 1.7 and 1.6, completely deleting each version after trying it, and rebooting, but I can't find one that will work with LC.

When I go to Edit->Prefrences->Mobile Support and select the Location of the SDK, it shows me the SDK path, but Development->Test and Test Target remain grayed-out.

So, I thought...

I'll try to install on the Mac. Again, everything seemed to be okay. Eclipse works. The Android SDK Manager works, and I have installed Android 2.2.

But I can't persuade LC to accept a path to the SDK. You mentioned "/android-sdk-macosx" but I don't seem to have that.

I tried "adt-bundle-mac-x86_64-20131030/sdk" but it doesn't accept it.

Just as with my PC, I must have missed a step. Any ideas?

Tkx again...

--paul

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Porting to Android ... First Steps ...

Post by LCNeil » Tue Jan 21, 2014 10:54 am

Hi Paul,

This video talks you through, step by step, the setup of Android deployment in LiveCode.

http://www.youtube.com/watch?v=83qrKr9bR3M

I hope this gives you some leads.

Kind Regards,

Neil Roger
-- 
RunRev Support Team ~ http://www.runrev.com

paulsr
Posts: 222
Joined: Thu Jul 19, 2012 9:47 am
Contact:

Re: Porting to Android ... First Steps ...

Post by paulsr » Tue Jan 21, 2014 11:15 am

Thanks Neil, I'll check it out...

--paul

paulsr
Posts: 222
Joined: Thu Jul 19, 2012 9:47 am
Contact:

Re: Porting to Android ... First Steps ...

Post by paulsr » Wed Jan 22, 2014 7:53 am

Great Video Neil.

I'd second-guessed a couple of things and guessed wrongly. Mac is now working. Tkx.

--paul

Post Reply