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

Book Description

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.

  • 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

  • In Detail

    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.

    Table of Contents

    1. LiveCode Mobile Development Beginner's Guide
      1. Table of Contents
      2. LiveCode Mobile Development Beginner's Guide
      3. Credits
      4. About the Author
      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. Conventions
        5. Time for action – heading
          1. What just happened?
          2. Pop quiz – heading
          3. Have a go hero – heading
        6. Reader feedback
        7. 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. Main windows
        4. Time for action – it's a drag, but you'll like it!
          1. What just happened?
        5. Creating a hierarchy
          1. Stack structure
          2. Where code goes
        6. Time for action – making and navigating between cards
          1. What just happened?
          2. Pop quiz – best name?
        7. Making a simple calculator application
          1. Inspector clues, oh…
        8. 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
        9. Other interface controls
          1. Video player control
          2. Still image control
          3. Rollover buttons
          4. Many More Controls…
        10. Debugging
        11. RunRev's online tutorials
        12. Summary
      9. 2. Getting Started with LiveCode Mobile
        1. iOS, Android, or both?
        2. Becoming an Android developer
          1. Android Market
          2. Amazon Appstore
          3. Pop quiz – when is something too much?
          4. Downloading the Android S
            1. Installing Android SDK on Mac OS X (Intel)
            2. Installing 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
        4. Installing Xcode
          1. Pointing LiveCode to the iOS SDKs
        5. Before we can make our first mobile app
          1. Getting ready to test for Android
        6. Time for action – starting an Android virtual device
          1. What just happened?
          2. Connecting a physical Android device
            1. Using a Kindle Fire
        7. Time for action – adding a Kindle Fire to ADB
          1. What just happened?
          2. Getting ready to test for iOS
        8. Time for action – using the iOS simulator
          1. What just happened?
        9. Appiness at last!
        10. Time for action – testing a simple stack in the simulators
          1. What just happened?
        11. Time for action – testing a simple stack on devices
          1. What just happened?
          2. Have a go hero – Nook
        12. Further reading
        13. 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 onto devices
        4. Time for action – trying 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?
          2. Mobile-only, date picker
        6. Time for action – showing a date picker
          1. What just happened?
          2. Mobile-only, loading pictures
        7. Time for action – loading pictures
          1. What just happened?
          2. Pop quiz – getting the big picture
        8. Making OS styled buttons
          1. Using bitmaps
        9. Time for action – using Photoshop to prepare button states
          1. What just happened?
          2. Pop quiz – the cost of things these days
          3. MobGUI to the rescue!
        10. Time for action – getting started with MobGUI
          1. What just happened?
          2. Test bed app, the MobGUI way
        11. Time for action – using MobGUI to make a test bed app
          1. What just happened?
          2. MobGUI native controls
        12. Time for action – using native controls from MobGUI
          1. What just happened?
          2. Have a go hero – other tests and pretty icons
        13. Adjusting things for different screen sizes
          1. Layout using a resize handler
        14. Time for action – simple code layout example
          1. What just happened?
          2. Layout using the LiveCode Geometry Manager
        15. Time for action – using the Geometry Manager to position buttons
          1. What just happened?
          2. Layout using MobGUI
        16. Time for action – using MobGUI to remember layouts for us
          1. What just happened?
          2. Have a go hero – other sizes
        17. Further reading
        18. Summary
      11. 4. Using Remote Data and Media
        1. 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 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?
            1. The missing links
            2. One more thing…
        8. Time for action – adding the Links card "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. What now?
        14. 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?
            1. Simulating lots and lots of buttons
          3. Time for action – making a map of the United States
            1. What just happened?
            2. Pop-Quiz – getting the big picture
              1. Using maskData for collision detection
        4. Time for action – making a racecourse
          1. What just happened?
        5. Time for action – making a race car
          1. What just happened?
          2. Pop-Quiz – calculate this!
        6. Making a jigsaw puzzle
          1. Going to pieces…
        7. Time for action – creating the pieces and choosing an image
          1. What just happened?
        8. Time for action – transferring imageData
          1. What just happened?
            1. Adding interactivity
        9. Time for action – setting up touch events
          1. What just happened?
          2. Have a go hero – one for the kids
        10. Summary
      13. 6. Making a Reminder Application
        1. What is a "reminder"?
        2. When?
          1. Date and time pickers
        3. Time for action – creating date and time pickers
          1. What just happened?
          2. Pop-Quiz – AO (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 Earth
          3. Pop quiz – what floor is my apartment on?
        6. What?
        7. Making the reminders 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. 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. General
          2. Stacks
          3. Copy Files
          4. iOS
            1. Build for
            2. Basic Application Settings
            3. Icons
            4. Splash Screens
            5. Orientation Options
            6. Custom URL Scheme
            7. Requirements and Restrictions
            8. 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. Creating "over the air" installers for iOS
            1. AirLaunch
            2. BetaBuilder
            3. TestFlightApp.com
        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. DropTools Palette
          4. mergExt
        3. Creating your own add-ons
          1. Custom controls
          2. Externals
      16. B. Pop Quiz Answers
        1. Chapter 1, LiveCode Fundamentals
          1. Pop Quiz – best name?
          2. Pop quiz – try to remember…
        2. Chapter 2, Getting Started with LiveCode Mobile
          1. Pop quiz – when is something too much?
          2. Pop quiz – tasty code names
          3. Pop quiz – iOS code names
        3. Chapter 3, Building User Interfaces
          1. Pop quiz – getting the big picture
          2. Pop quiz – the cost of things these days
        4. Chapter 4, Using Remote Data and Media
          1. Pop quiz – name that structure
          2. Pop quiz – other special places
        5. Chapter 5, Making a Jigsaw Puzzle Application
          1. Pop-Quiz – how many bits in a byte?
          2. Pop-Quiz – getting the big picture
          3. Pop-Quiz – calculate this!
        6. Chapter 6, Making a Reminders Application
          1. Pop-Quiz – AO (Odd Acronyms!)
          2. Pop-Quiz – What floor is my apartment on?
      17. Index