You are previewing LiveCode Mobile Development Cookbook.
O'Reilly logo
LiveCode Mobile Development Cookbook

Book Description

90 practical recipes for creating cross-platform mobile applications with the power of LiveCode

In Detail

LiveCode is a programming language that helps you create apps for multiple platforms and has emerged as one of the premier development environments and languages for creating mobile applications. Programming tasks and concepts are expertly handled with a recipe schema in this book, making access to the information you want readily available.

This book is chock-full of helpful recipes that quickly solve key tasks when using LiveCode for mobile development. It serves as a significant reference tool for LiveCode mobile developers, beginners, novices, and experts alike. It will help you learn how to create user interfaces, use loops and timers, take control of text, implement social media components to your apps, and more.

What You Will Learn

  • Build human-computer interfaces that result in immersive app experiences
  • Set up and configure your development environment for iOS and Android OS
  • Use loops and timers to make your mobile apps more robust
  • Manipulate and manage text to supercharge your apps
  • Integrate social media into your mobile applications
  • Read, write, and edit external data to extend the capabilities of your mobile apps
  • Understand how to use LiveCode externals and plugins to leverage their power in your apps
  • 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 Cookbook
      1. Table of Contents
      2. LiveCode Mobile Development Cookbook
      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. Reader feedback
        6. Customer support
          1. Downloading the example code
          2. Errata
          3. Piracy
          4. Questions
      8. 1. LiveCode Mobile Basics
        1. Introduction
        2. Setting up your mobile environment for iOS development
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        3. Setting up your mobile environment for Android development
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        4. Defining icons and images for iOS development
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        5. Defining icons and images for Android development
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        6. Configuring standalone application settings for iOS applications
          1. How to do it...
          2. How it works...
          3. See also
        7. Configuring standalone application settings for Android applications
          1. How to do it...
          2. How it works...
          3. See also
        8. Using the simulator
          1. How to do it...
          2. How it works...
          3. See also
        9. Saving a standalone mobile app
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
      9. 2. Human-computer Interfaces
        1. Introduction
        2. Creating a new main stack
          1. How to do it...
          2. How it works...
          3. There's more...
        3. Displaying web pages in your app
          1. How to do it...
          2. How it works...
        4. Masking user passwords
          1. How to do it...
          2. How it works...
          3. There's more...
        5. Including glow effects on buttons
          1. How to do it...
          2. How it works...
        6. Including state graphics on buttons
          1. How to do it...
          2. How it works...
        7. Getting an object's properties
          1. How to do it...
          2. How it works...
          3. See also
        8. Setting custom properties
          1. How to do it...
          2. How it works...
          3. See also
        9. Aligning interface objects
          1. How to do it...
          2. How it works...
        10. Dynamically displaying interface objects
          1. How to do it...
          2. How it works...
        11. Getting the user input
          1. How to do it...
          2. How it works...
        12. Recording user actions
          1. How to do it...
          2. How it works...
        13. Restricting the user input
          1. How to do it...
          2. How it works...
          3. There's more...
        14. Using mobile keyboards
          1. How to do it...
          2. How it works...
        15. Using a date picker
          1. How to do it...
          2. How it works...
          3. See also
        16. Using a time picker
          1. How to do it...
          2. How it works...
          3. See also
        17. Using effects between cards
          1. How to do it...
          2. How it works...
          3. There's more...
        18. Using buttons for navigation
          1. How to do it...
          2. How it works...
      10. 3. Loops and Timers
        1. Introduction
        2. Implementing a countdown timer
          1. How to do it...
          2. How it works...
          3. There's more...
          4. See also
        3. Implementing a count-up timer
          1. How to do it...
          2. How it works...
          3. There's more...
          4. See also
        4. Pausing a timer
          1. How to do it...
          2. How it works...
          3. See also
        5. Resuming a timer
          1. How to do it...
          2. How it works...
          3. See also
        6. Using a loop to count
          1. How to do it...
          2. How it works...
          3. See also
        7. Using a loop to iterate through a list
          1. How to do it...
          2. How it works...
          3. See also
      11. 4. Managing Text
        1. Introduction
        2. Reading the user input
          1. How to do it...
          2. How it works...
          3. See also
        3. Searching text
          1. How to do it...
          2. How it works...
          3. There's more...
        4. Replacing text
          1. How to do it...
          2. How it works...
        5. Combining text
          1. How to do it...
          2. How it works...
        6. Encrypting text
          1. How to do it...
          2. How it works...
        7. Writing text
          1. How to do it...
          2. How it works...
          3. See also
        8. Reading text
          1. How to do it...
          2. How it works...
          3. See also
        9. Sorting text
          1. How to do it...
          2. How it works...
        10. Formatting text
          1. How to do it...
          2. How it works...
        11. Appending text
          1. How to do it...
          2. How it works...
        12. Translating text into Pig Latin
          1. How to do it...
          2. How it works...
          3. There's more...
      12. 5. Communications
        1. Introduction
        2. Initiating a phone call
          1. How to do it...
          2. How it works...
          3. There's more...
        3. Sending an e-mail
          1. How to do it...
          2. How it works...
          3. See also
        4. Formatting an e-mail
          1. How to do it...
          2. How it works...
          3. See also
      13. 6. Data Structures
        1. Introduction
        2. Using arrays
          1. How to do it...
          2. How it works...
          3. See also
        3. Using multidimensional arrays
          1. How to do it...
          2. How it works...
          3. There's more...
          4. See also
        4. Saving external data
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        5. Loading external data
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        6. Reading XML
          1. How to do it...
          2. How it works...
          3. See also
        7. Writing XML
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        8. Using SQLite
          1. How to do it...
          2. How it works...
          3. There's more...
          4. See also
        9. Using MySQL
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
      14. 7. External Media
        1. Introduction
        2. Loading an image
          1. How to do it...
          2. How it works...
          3. There's more...
          4. See also
        3. Capturing an image from a mobile device's camera
          1. How to do it...
          2. How it works...
          3. There's more...
          4. See also
        4. Resizing an image
          1. How to do it...
          2. How it works...
          3. There's more...
          4. See also
        5. Playing a movie
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        6. Controlling the movie playback
          1. How to do it...
          2. How it works...
          3. See also
        7. Playing an audio file
          1. Getting ready
          2. How to do it...
          3. How it works...
      15. 8. Using MobGUI
        1. Introduction
        2. Setting up MobGUI
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        3. Using a navigational bar
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        4. Using a button
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        5. Using a navigational button
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        6. Using a slider
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        7. Using a toggle button
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        8. Using a list button
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        9. Using a progress bar
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
      16. 9. Using Animation Engine
        1. Introduction
        2. Setting up Animation Engine
          1. How to do it...
          2. How it works...
          3. See also
        3. Moving objects along a line
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        4. Moving objects along a polygonal path
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        5. Moving objects along an elliptical path
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        6. Moving objects along a circular path
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        7. Stopping a moving object
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        8. Calculating the distance between two points
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        9. Using speed
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        10. Using collision listeners
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        11. Simulating gravity
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
      17. 10. Miscellaneous
        1. Introduction
        2. Adding numbers
          1. How to do it...
          2. How it works...
          3. There's more...
          4. See also
        3. Subtracting numbers
          1. How to do it...
          2. How it works...
          3. There's more...
          4. See also
        4. Multiplying numbers
          1. How to do it...
          2. How it works...
          3. There's more...
          4. See also
        5. Dividing numbers
          1. How to do it...
          2. How it works...
          3. There's more...
          4. See also
        6. Using advanced math
          1. How to do it...
          2. How it works...
          3. There's more...
          4. See also
        7. Randomizing numbers
          1. How to do it...
          2. How it works...
          3. There's more...
          4. See also
        8. Opening a web page
          1. How to do it...
          2. How it works...
          3. See also
        9. Querying web data
          1. How to do it...
          2. How it works...
          3. See also
        10. Using the geometry manager
          1. How to do it...
          2. How it works...
          3. There's more...
        11. Using invisible objects
          1. How to do it...
          2. How it works...
        12. Taking snapshots of a card
          1. How to do it...
          2. How it works...
          3. There's more...
          4. See also
        13. Taking snapshots of an area on a card
          1. How to do it...
          2. How it works...
          3. See also
        14. Detecting the operating system
          1. How to do it...
          2. How it works...
      18. Index