Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
LiveCode Mobile Development Beginner's Guide
LiveCode Mobile Development Beginner's Guide

LiveCode Mobile Development Beginner's Guide: With this book and your basic programming knowledge, you'll find it easy to use LiveCode to create mobile apps for Android and iOS. A great starting point for taking the app store by storm.

eBook
€19.99 €28.99
Paperback
€37.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Table of content icon View table of contents Preview book icon Preview Book

LiveCode Mobile Development Beginner's Guide

Chapter 2. Getting Started with LiveCode Mobile

Before we can do neat things…

Creating stacks that do something that you will find useful or that may become a mobile app that you can sell, is a very gratifying process. Minute by minute, you can be making progress, and instantly see improvements that you have made. Unfortunately, there is a lot of less gratifying work to be done before and after you have made your masterpiece. This chapter will take you through the "before" part.

LiveCode makes mobile apps by taking the stack you have made, along with any supporting files you have added, and compiles the application file using the developer kit that you will download from the mobile OS provider – Google for Android and Apple for iOS.

In this chapter we will:

  • Sign up for Android Market

  • Sign up for Amazon Appstore

  • Download and install the Android SDK

  • Configure LiveCode so that it knows where to look for the Android SDK

  • Become an iOS developer with Apple

  • Download and install Xcode

  • Configure LiveCode so...

iOS, Android, or both?


It could be that you only have an interest in iOS or only in Android. You should be able to easily see where to skip ahead to, unless you're intrigued about how the other half lives! If, like me, you're a capitalist, then you should be interested in both OSes.

Far fewer steps are needed to get the Android SDK than to get the iOS developer tools, because of having to sign up as a developer with Apple, but the configuration for Android is more involved. We'll go through all the steps for Android and then the ones for iOS. If you're an iOS-only kind of person, skip the next few pages, picking up again at the Becoming an iOS Developer section.

Becoming an Android developer


It is possible to develop Android OS apps without having to sign up for anything, but we'll try to be optimistic and assume that within the next 12 months, you will find time to make an awesome app that will make you rich! To that end, we'll go over what is involved in signing up to publish your apps in both the Android Market and the Amazon Appstore.

Android Market

A good starting location would be http://developer.android.com/.

You will be back here shortly to download the Android SDK, but for now, click on the Learn More link in the Publish area. There will be a sign-in screen; sign in using your usual Google details.

Tip

Which e-mail address to use?

Some Google services are easier to sign up for, if you have a Gmail account. Creating a Google+ account, or signing up for some of their Cloud services, requires a Gmail address (or so it seemed to me at the time!). If you have previously set up Google Checkout as part of your account, some of the steps in signing...

Becoming an iOS developer


Creating iOS LiveCode applications requires that LiveCode must have access to the iOS SDK. This is installed as a part of the Xcode developer tools, and that is a Mac-only program. Also, when you do upload an app to the iOS App Store, the application that is used is also Mac-only, and is also part of the Xcode installation. If you are a Windows-based developer and wish to develop and publish for iOS, then you will need either a virtual machine that can run Mac OS, or an actual Mac.

The biggest difference between becoming an Android developer and an iOS developer is that you have to sign up with Apple for their developer program, even if you never produce an app for the iOS App Store. If things go well, and you end up making an app for the various stores, then this isn't such a big deal. It will have cost you $25 to be able to submit to the Android Market, $99 a year (with the first year free) to submit to the Amazon Appstore, and $99 a year (including the first year...

Installing Xcode


Once you receive the confirmation of being an iOS developer, you will be able to log into the iOS Dev Center, at https://developer.apple.com/devcenter/ios/index.action.

This same page is used by iOS developers who are not using LiveCode, and is full of support documents to help someone create native applications using Xcode and Objective-C. We don't need most of that, but we do need to download Xcode.

In the downloads area of the iOS Dev Center page, you will see different Xcode versions for Mac OS 10.6 (Snow Leopard) and for Mac OS 10.7 (Lion), as well as the link to the older Xcode 3. You can also get code from the Mac App Store, and as of version 4.3 of Xcode, that takes the form of an application instead of a developer folder.

Installing Xcode from the Mac App Store is very straightforward; it's just like buying any other app from the store, except that it's free! It does require that you are using Mac OS 10.7.3 or later. If you are using an older system, then you would...

Before we can make our first mobile app


Now that the required SDKs are installed, and LiveCode knows where they are, we can make a stack and test it in a simulator or on a physical device. We do, however, have to get the simulators and physical devices warmed up…

Getting ready to test for Android

Simulating on iOS is easier than it is for Android, and testing on a physical device is easier on Android than on iOS, but the setting up of physical Android devices can be horrendous!

Time for action – starting an Android virtual device


You will have to do a little digging deep into the Android SDK folders to find the Android Virtual Device setup program, and you might well want to make a shortcut or alias to it for quicker access.

  1. Navigate to the Android SDK tools folder, located at C:\Program Files (x86)\Android\android-sdk\ on Windows, and in your Documents:android-sdk-macosx:tools folder on Mac.

  2. Open AVD Manager on Windows, or Android on Mac (it looks like a Unix executable - just double-click on it, and the application will open via a command-line window).

  3. If you're on Mac, select Manage AVDs… from the Tools menu.

  4. Select Tablet from the list of devices (there are only two when you have first installed the android SDK - you can add your own custom ones here as well).

  5. Click on the Start button.

  6. Sit patiently while the virtual device starts up!

  7. Open LiveCode, and create a new Mainstack, and Save the stack to your hard drive.

  8. Select File | Standalone Application Settings….

  9. Click...

Time for action – adding a Kindle Fire to ADB


It only takes one line of text to add the Kindle Fire to the list of devices that ADB knows about. The harder part is tracking down the text file to edit, and getting ADB to restart after making the changes. Things are more involved with Windows than Mac, because you also have to configure the USB driver, so the two systems are shown here as separate processes:

For Windows:

  1. In Windows Explorer, navigate to where the file adb_usb.ini is located, at C:\Users\yourusername\.android\.

  2. Open the text file adb_usb.ini in a text editor. The file has no visible line breaks, so Wordpad would be a better option than Notepad.

  3. On the line after the three instruction lines, type 0x1949.

  4. Make sure there are no blank lines, and the last character in the text file should be the 9 at the end of 0x1949.

  5. Save.

  6. Navigate to where android_winusb.inf is located, at C:\Program Files (x86)\Android\android-sdk\extras\google\usb_driver\.

  7. Right-click on the file, and in Properties...

Time for action – using the iOS simulator


The first steps are much like those for Android apps, but then it gets quicker. Remember, this only applies to Mac OS,and you can only do these things on Windows if you are using Mac OS in a virtual machine, and doing that is most likely not covered by the Mac OS user agreement! In other words, it's best to get a Mac if you intend to develop for iOS.

  1. Open LiveCode, create a new Mainstack, and save the stack to your hard drive.

  2. Select File | Standalone Application Settings….

  3. Click on the iOS icon, and select the Build for iOS check box.

  4. Close the settings dialog box, and take a look at the Development menu.

  5. You will see a list of simulator options, for iPhone and iPad, and different versions of iOS.

What just happened?

That was it, all it takes to get going with testing using the iOS simulators! Testing on a physical iOS device requires that we create an application first, so let's do that.

Appiness at last!


By this point, you should be able to create a new Mainstack, save it, select either iOS or Android in the Standalone Settings dialog box, and be able to see simulators or virtual devices in the Development/Test menu item. In the case of an Android app, you will also see your device listed, if it is connected via USB at the time.

Time for action – testing a simple stack in the simulators


Feel free to make things that are more elaborate than asked for in these steps! The instructions will be making the assumption that you know how to find things for yourself in the object inspector palette.

  1. Open LiveCode, create a new Mainstack, and save it to a location where it's easy to find in a moment from now.

  2. Set the card window to a size of 1024x768, and uncheck the Resizable checkbox.

  3. Drag a label field into the top-left corner of the card window, and set its contents to something appropriate. Hello World could do nicely!

  4. If you're developing on Windows, skip to step 11.

  5. Open the Standalone Application Settings dialog, click on the iOS icon, and select the Build for iOS checkbox.

  6. Under Orientation Options, set the iPhone initial orientation to Landscape.

  7. Close the dialog box.

  8. From the Development/Test Target sub-menu, choose the iPad Simulator.

  9. Select Test from the Development menu.

  10. You should be now seeing your test stack running...

Time for action – testing a simple stack on devices


Get your USB cables ready, and connect the devices to your computer. Android first…

  1. You should still have Android selected in Standalone Application Settings.

  2. Get your device to its home screen, past the initial lock screen if there is one.

  3. Choose Development/Test Target, and select your Android device. It may well say Android and a very long number.

  4. Choose Development/Test.

  5. The stack should now be running on your Android device.

Now iOS…

  1. If you have not read the later chapter on deploying to your device, or the Apple pages, or have not installed certificates and provisioning files, then you will have to skip this test for now.

  2. Change the Standalone Application Settings back to iOS.

  3. Under Basic Application Settings of the iOS settings is a Profile drop-down menu showing the provisioning files that you have installed. Choose the one that is configured for the device you are going to test.

  4. Close the dialog box, and choose Save as Standalone Application...

Further reading


The SDK providers, Google and Apple, have extensive pages of information on setting up their development environments, creating certificates and provisioning files, and so on. The information does have to cover a lot of topics that don't apply to LiveCode, so try not to get lost! These would be good starting pages:

Summary


Signing up for programs, file downloading, command-lining your way all over the place, and patiently waiting for the Android emulator to launch, means that it could take the best part of a day to work through what we've covered in this chapter! Fortunately, you only have to go through it once.

We did work through the tasks that you have to do before you can create a mobile app in LiveCode:

  • Download and install the Android SDK

  • Sign up as an iOS developer

  • Download and install Xcode and the iOS SDKs

  • Configure devices and simulators

We also covered some topics that will be useful once you are ready to upload a finished app:

  • Signing up for Android Market

  • Signing up for Amazon Appstore

There will be more mundane things to cover near the end of the book, but not for a while! Next up, we will start to play with some of the special abilities of mobile devices.

Left arrow icon Right arrow icon

Key benefits

  • Create fun, interactive apps with rich media features of LiveCode
  • Step-by-step instructions for creating apps and interfaces
  • Dive headfirst into mobile application development using LiveCode backed with clear explanations enriched with ample screenshots

Description

LiveCode is a tool for developing mobile apps designed for those who don't want to use Objective-C, C++ or Java. Although it is a tool full of rich features to create apps it can be challenging to get beyond the basics and build interactive and fun apps. Using this book, you can develop various apps and this book guides you through "till you upload the apps in the appstore."LiveCode Mobile Development Beginner's Guide" will explain how to create applications with the easiest, most practical cross platform framework available, Livecode Mobile and upload the apps to the appstore with minimal effort.Throughout the book, you'll learn details that will help you become a pro at mobile app development using LiveCode. You begin with simple calculator application and quickly enhance it using LiveCode Mobile. Start by learning the interface controls for videos and images of LiveCode's environment. Dig into configuring devices, building user interfaces, and making rich media applications, then finish by uploading the mobile applications to App Stores. You will learn how to build apps for devices such as iPhone, Android with the recently developed LiveCode Mobile through sample applications of increasing complexity.

Who is this book for?

If you are a developer, consultant or student looking to create fast, scalable mobile applications, then this book is for you. Basic knowledge of programming such as understanding variables, expressions, control structures and functions is required.

What you will learn

  • Create a simple sample application
  • Build the interface and write the code using a Multimedia Scrapbook as an example application
  • Make a To do/reminders application
  • Build User Interfaces like Touch interfaces
  • Uploading your final app to the App Store
  • Create a jigsaw puzzle app that takes advantage of several mobile device features
  • Make standard looking buttons and fields, and programmatically create the screen layout

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jul 26, 2012
Length: 246 pages
Edition : 1st
Language : English
ISBN-13 : 9781849692496
Category :
Languages :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want

Product Details

Publication date : Jul 26, 2012
Length: 246 pages
Edition : 1st
Language : English
ISBN-13 : 9781849692496
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 121.97
LiveCode Mobile Development Beginner's Guide
€37.99
LiveCode Mobile Development Beginner's Guide (2nd Edition)
€41.99
LiveCode Mobile Development Cookbook
€41.99
Total 121.97 Stars icon

Table of Contents

7 Chapters
LiveCode Fundamentals Chevron down icon Chevron up icon
Getting Started with LiveCode Mobile Chevron down icon Chevron up icon
Building User Interfaces Chevron down icon Chevron up icon
Using Remote Data and Media Chevron down icon Chevron up icon
Making a Jigsaw Puzzle Application Chevron down icon Chevron up icon
Making a Reminder Application Chevron down icon Chevron up icon
Deploying to Your Device Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.7
(11 Ratings)
5 star 36.4%
4 star 18.2%
3 star 36.4%
2 star 0%
1 star 9.1%
Filter icon Filter
Top Reviews

Filter reviews by




Dharma Guys Apr 12, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book has answers for so many things, AND has information and tips that are extremely cool and useful. A must have for anyone even a little serious. Extreme time saver.
Amazon Verified review Amazon
Phil Parker Aug 22, 2013
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This is a great book that is so easy to follow & explains each step simply enough for a beginner.The LiveCode website is a great place to learn & there are lots of lessons there but I feel this book was better for anyone starting out.
Amazon Verified review Amazon
by Richard MacLemale Nov 22, 2012
Full star icon Full star icon Full star icon Full star icon Full star icon 5
As an Intermediate LiveCode programmer who has already put two apps in the App Store, I wasn't sure what to expect from this book - would it be too basic for me to learn anything? Would it offer any insight into how I can streamline my own process for getting my apps into the store? And the answers were no and yes - no, it was not too basic, and yes, I am finding that the book has a lot of great information that I didn't know.One thing I would do is caution beginners - the book eases you into LiveCode, but it starts to ramp up and gets into some fairly advanced concepts - might be difficult for a beginner, but it's perfect for the intermediate programmers like me.My biggest problem is impatience - I want to jump right in and grab a few nuggets of knowledge, but this book really requires a more structured study. I have no doubt I'll get a lot more out of it when I take the time to really go through it.Summary - For beginners to LiveCode who want to make iOS and/or Android apps, it's a good book, but you might find the later chapters moderately challenging (which is NOT a bad thing.) For intermediate LiveCode programmers, you'll probably learn some nice tricks of the trade.
Amazon Verified review Amazon
G. Feamster Aug 09, 2012
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I've been programming for 30 years and tend to think in technical forms. So Livecode was a bit of a problem for me in that it veers away from the very technical and makes language syntax more layman oriented. I went through the video tutorials which are very good but until I read this book I didn't realize that there were holes in my knowledge and this fills those holes. There are good screen shots and using the kindle edition is economical and convenient with the kindle app on my nexus 7 tablet. Also there are weblinks that would encourage the use of the desktop kindle app on my mac.
Amazon Verified review Amazon
Jim M Oct 09, 2012
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
I generally have a hard time with programming books. They are either too broadly focused and as a result never give enough truly useful information or they are so narrowly focused they are only useful if one is trying to solve exactly the problem the book is focusing on. When I agreed to review this book (in return for a copy), I expected to find it on one side or the other of that spectrum. I was very pleasantly surprised. Simply put,this book is not like that. The author has done an excellent job covering a very broad and potentially complex subject in enough detail to be useful without getting bogged down in minutiae.Using practical examples of apps that one can actually see as being useful, the author provides both the general background and detailed coding examples to get you started coding with LiveCode and actually get your apps up and out the door on Android and iOS devices. The first part of the book provides a compact introduction to LiveCode geared towards those with some previous experience in Xtalk-like languages (HyperCard, SuperCard, MetaCard, etc). The intro may be a little too compact for non-programmers but the natural language character of LiveCode makes it less daunting and LiveCode's flexibility makes it well worth the effort.Once through the familiarization section, the book takes off into the nuts and bolts of coding for mobile devices with LiveCode. The details are dealt with in a clear, concise manner with none of the common "fill in the missing pieces of code" parts that plague many other books. It focuses on three key apps: a web page data extractor (great for demonstrating internet connectivity and text handling), a jigsaw puzzle app (great for working with graphics) and a reminder app (great for working with time, location and notification features expected from today's apps). Once those are done, the book addresses how to get your app out of the development environment (i.e. stuck on your personal device) and into the real world including how to distribute to beta testers and app marketplaces.The only significant issue I have with the book is that it addresses the challenges of graphic controls for mobile devices (and in particular the iOS devices) with a tool called MobGui which is not a part of LiveCode. I'm not sure a LiveCode for Beginners book should rely so heavily on an extra tool that one must pay for. In addition, MobGui appears not been updated in quite a while and may not be the best choice for the task at hand. That said, using MobGui for the interface elements does allow the author to move beyond the frustrating subject of building controls and geometry management for mobile devices and on to the more important (in my mind) details of coding in LiveCode... the official subject of the book.All in all I believe this is an excellent book (and the only one!) for learning how easy it is to develop and deploy mobile apps using LiveCode
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.