You are previewing LiveCode Mobile Development Beginner's Guide - Second Edition.
O'Reilly logo
LiveCode Mobile Development Beginner's Guide - Second Edition

Book Description

Create interactive mobile apps for Android and iOS with LiveCode

  • Create fun, interactive apps with the rich media features of LiveCode

  • Dive headfirst into mobile application development through explanations enriched with ample screenshots

  • Learn to create apps and interfaces using the step-by-step instructions

  • In Detail

    LiveCode is a tool for developing mobile apps designed for users who don't want to use Objective-C, C++, or Java. LiveCode Mobile Development Beginner's Guide, Second Edition will explain how to create apps and upload them to the app stores with minimal effort.

    You will begin with a simple calculator application and quickly enhance it using LiveCode Mobile. You will also learn about the interface controls for videos and images of LiveCode's environment. You'll go on digging into configuring devices and making rich media applications, and then finish by uploading your mobile applications to app stores. You will learn how to build apps for iPhone and Android devices with LiveCode Mobile through sample applications of increasing complexity.

    Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

    Table of Contents

    1. LiveCode Mobile Development Beginner's Guide Second Edition
      1. Table of Contents
      2. LiveCode Mobile Development Beginner's Guide Second Edition
      3. Credits
      4. About the Authors
      5. About the Reviewers
      6. www.PacktPub.com
        1. Support files, eBooks, discount offers, and more
          1. Why subscribe?
          2. Free access for Packt account holders
      7. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Sections
        5. Time for action – heading
          1. What just happened?
          2. Pop quiz – heading
          3. Have a go hero – heading
        6. Conventions
        7. Reader feedback
        8. Customer support
          1. Downloading the example code
          2. Errata
          3. Piracy
          4. Questions
      8. 1. LiveCode Fundamentals
        1. Background history and metaphors
        2. You do have LiveCode, don't you?
        3. Learning the lay of the land
          1. Online lessons
          2. Main windows
        4. Time for action – it's a drag, but you'll like it!
          1. To select edit or not…
          2. What just happened?
          3. Creating a hierarchy
          4. The stack structure
          5. Where does the code go?
        5. Time for action – making cards and navigating between them
          1. What just happened?
          2. Pop quiz – selecting the best name?
        6. Making a simple calculator application
          1. Inspector clues, oh!
        7. Time for action – making the calculator buttons
          1. What just happened?
          2. Verbosity, synonyms, and "me"
          3. Adding the card handlers
          4. Variable types in LiveCode
          5. Pop quiz – try to remember…
          6. Extending the calculator
          7. Have a go hero – getting to the root of things
        8. Other interface controls
          1. The video player control
          2. The still image control
          3. Rollover buttons
          4. Many more controls…
        9. Debugging
        10. Summary
      9. 2. Getting Started with LiveCode Mobile
        1. iOS, Android, or both?
        2. Becoming an Android developer
          1. Google Play
          2. Amazon Appstore
          3. Pop quiz – when is something too much?
          4. Downloading the Android SDK
            1. Installing the Android SDK on Mac OS X (Intel)
            2. Installing the Android SDK on Windows
          5. Pointing LiveCode to the Android SDK
          6. Pop quiz – tasty code names
        3. Becoming an iOS developer
          1. Pop quiz – iOS code names
          2. Installing Xcode
          3. Pointing LiveCode to the iOS SDKs
        4. Before we make our first mobile app…
          1. Getting ready for test development on an Android device
        5. Time for action – starting an Android Virtual Device
          1. Creating an Android Virtual Device
          2. What just happened?
          3. Connecting a physical Android device
            1. Using Kindle Fire
        6. Time for action – adding Kindle Fire to ADB
          1. What just happened?
          2. Getting ready for test development on an iOS device
        7. Time for action – using the iOS simulator
          1. What just happened?
        8. Appiness at last!
        9. Time for action – testing a simple stack in the simulators
          1. What just happened?
        10. Time for action – testing a simple stack on devices
          1. What just happened?
          2. Have a go hero – Nook
        11. Further reading
        12. Summary
      10. 3. Building User Interfaces
        1. Setting up a test bed mobile app
        2. Time for action – making the test bed stack
          1. What just happened?
          2. Invoking the desktop e-mail application
        3. Time for action – calling the native e-mail application
          1. What just happened?
          2. Installing the e-mail test on devices
        4. Time for action – trying the test bed stack on devices
          1. What just happened?
          2. Opening a web page
        5. Time for action – calling the native browser application
          1. What just happened?
        6. The mobile-only date picker
        7. Time for action – displaying a date picker
          1. What just happened?
        8. Time for action – loading pictures for a mobile device
          1. What just happened?
          2. Pop quiz – getting the big picture
        9. Making OS-styled buttons
          1. Using bitmaps
        10. Time for action – using Photoshop to prepare button states
          1. What just happened?
          2. Pop quiz – the cost of things these days
        11. MobGUI to the rescue!
        12. Time for action – getting started with MobGUI
          1. What just happened?
          2. A test bed app, the MobGUI way
        13. Time for action – using MobGUI to make a test bed app
          1. What just happened?
          2. MobGUI native controls
        14. Time for action – using native controls from MobGUI
          1. What just happened?
          2. Have a go hero – other tests and pretty icons
          3. Laying out using a resize handler
        15. Time for action – a simple code layout example
          1. What just happened?
          2. Laying out using the LiveCode Geometry Manager
        16. Time for action – using the Geometry Manager to position buttons
          1. What just happened?
        17. Resolution independence
          1. Multiple density support
            1. Pixels and points
            2. Image naming convention
          2. The full-screen scaling mode
            1. Syntax
            2. The empty mode
            3. The showAll mode
            4. The letterbox mode
            5. The noBorder mode
            6. The exactFit mode
        18. Summary
      11. 4. Using Remote Data and Media
        1. The stack structure
          1. Code-driven and manually created layouts
          2. Locations for code
          3. Pop quiz – name that structure
        2. Loading and saving external data
          1. Querying a URL
          2. Reading and writing to a text file
          3. Using another stack to store data
        3. Time for action – creating a data save stack
          1. What just happened?
          2. Pop quiz – other special places
        4. Creating a web "scraper" app
        5. Time for action – setting up the tab navigation
          1. What just happened?
          2. The Browser card
        6. Time for action – adding the browser controls
          1. What just happened?
          2. The Links card
        7. Time for action – making a links extraction function
          1. What just happened?
          2. The missing links
            1. One more thing…
        8. Time for action – adding the links card's init handler
          1. What just happened?
          2. The Text card
        9. Time for action – setting up the Text card
          1. What just happened?
          2. The Media card
        10. Time for action – extracting a list of media links
          1. What just happened?
        11. Time for action – setting up the Media card scripts
          1. What just happened?
          2. The Keepers card
        12. Time for action – setting up the Keepers card
          1. What just happened?
          2. Have a go hero – add some preset locations
        13. Summary
      12. 5. Making a Jigsaw Puzzle Application
        1. Image data format
          1. Mystery byte…
        2. Misusing imageData
        3. Time for action – testing a getPixel function
          1. What just happened?
          2. Pop quiz – how many bits in a byte?
          3. Simulating lots of buttons
        4. Time for action – making a map of the United States
          1. What just happened?
          2. Pop quiz – getting the big picture
          3. Using maskData for collision detection
        5. Time for action – making a racecourse
          1. What just happened?
        6. Time for action – making a racecar
          1. What just happened?
          2. Pop quiz – calculate this!
        7. Making a jigsaw puzzle
          1. Going to pieces…
        8. Time for action – creating the pieces and choosing an image
          1. What just happened?
        9. Time for action – transferring imageData
          1. What just happened?
          2. Adding interactivity
        10. Time for action – setting up touch events
          1. What just happened?
          2. Have a go hero – one for the kids
        11. Summary
      13. 6. Making a Reminder Application
        1. Different types of reminders
        2. Timing of notifications
          1. Date and time pickers
        3. Time for action – creating date and time pickers
          1. What just happened?
          2. Pop quiz – OA (odd acronyms!)
        4. Where?
        5. Time for action – trying out native location tracking
          1. What just happened?
          2. Calculating the distance between two points on the Earth
          3. Pop quiz – what floor is my apartment on?
        6. Information needed in a reminder
        7. Making the reminder app
          1. Laying out the cards
        8. Time for action – creating the reminder app screens
          1. What just happened?
          2. Stack-level scripts
        9. Time for action – adding stack-level functions
          1. What just happened?
          2. Home card scripts
        10. Time for action – making the home card buttons work
          1. What just happened?
          2. Creating a location card
        11. Time for action – making the location card work
          1. What just happened?
          2. The reminder entry form
        12. Time for action – taking in information about the reminder
          1. What just happened?
          2. Have a go hero – nice transitions
        13. Summary
      14. 7. Deploying to Your Device
        1. Standalone application settings
          1. The General section
          2. The Stacks section
          3. The Copy Files section
          4. The iOS section
            1. The Build for section
            2. Basic application settings
            3. Icons
            4. Icon tools
            5. Splash screens
            6. Orientation options
            7. The Custom URL scheme
            8. Requirements and restrictions
            9. A status bar
          5. Android
            1. Basic application settings
            2. Requirements and restrictions
            3. Application permissions
            4. User interface options
        2. Building Apps for Beta Testers
          1. Sending an Android app to testers
          2. Preparing an iOS app so that it can work on someone else's device
          3. Using "over the air" installers for iOS
            1. AirLaunch
            2. BetaBuilder
            3. TestFlight
          4. Using "over the air" installers for Android
            1. Google testing
            2. Amazon testing
            3. Samsung testing
        3. Creating an app store submission file
          1. Finding and using the Android Keytool application
          2. Creating a distribution certificate for iOS
        4. Uploading to the app stores
          1. What's similar
          2. What's different
          3. Bottom line
        5. Summary
      15. A. Extending LiveCode
        1. The story so far…
        2. Extending LiveCode
          1. MobGUI
          2. tmControl
          3. The DropTools palette
          4. mergExt
          5. animationEngine
          6. AirLaunch
          7. The ControlManager IDE
        3. Creating your own add-ons
          1. Custom controls
          2. Externals
          3. Open source
          4. Quality control
        4. A New World of Extensions
          1. Inside extensions
          2. LiveCode Builder
          3. Additional constructs
            1. Packages
            2. Modules
          4. Roadmap
      16. Index