Appcelerator Titanium: Up and Running

Book description

Build native apps for iOS, Android, and Blackberry from a single JavaScript codebase with Appcelerator Titanium. This guide gets you quickly up to speed on this amazing framework and shows you how to generate cross-platform apps with 100% native controls. You’ll also learn the advantages of using Titanium when you want to create an app for just one native platform, rather than struggle with Java or Objective-C.

Fast-paced and full of examples, this book helps you build your first project with Titanium Studio, and then takes you through the steps necessary to build complex data-bound apps.

  • Learn how Titanium differs from frameworks such as jQuery Mobile and Sencha Touch
  • Set up and use iOS and Android SDKs and compilers with Titanium
  • Build basic UI and window controls, and create your own composite objects
  • Take a peek at how Titanium objects and methods work behind the scenes
  • Learn how JavaScript makes Titanium easy to extend and customize
  • Develop apps that consume complex data, whether it’s stored locally or on remote servers
  • Understand the pros and cons of distributing apps on the App Store and Android Market

Publisher resources

View/Submit Errata

Table of contents

  1. Preface
    1. Introduction
    2. Conventions Used in This Book
    3. Using Code Examples
    4. Safari® Books Online
    5. How to Contact Us
    6. Acknowledgments
  2. 1. The Benefits of Titanium
    1. When to Use Titanium
    2. When Titanium Makes Sense
      1. Cross-Platform Compatibility
      2. Using Titanium for Just One Platform
    3. When Titanium Doesn’t Make Sense
    4. Mobile Landscape
      1. PhoneGap
      2. Sencha Touch
      3. jQuery Mobile
      4. jQTouch
      5. MonoTouch
    5. Where’s the GUI?
    6. Death of Xcode and ADK?
    7. Pricing and Support
  3. 2. Getting Set Up to Use Titanium
    1. Selecting a Development Environment
    2. Setting Up Your Native SDKs
    3. Other Hardware Prerequisites
      1. External Displays
  4. 3. Titanium Studio
    1. Features of Titanium Studio
      1. Automatic Syntax Checking
      2. Autocomplete (Intellisense)
      3. Debugging
      4. Building Your App
    2. Titanium Studio and Other Text Editors
  5. 4. A Hello World App
    1. Building Your First App
    2. Writing the App
    3. The Files in Your First Project
      1. The tiapp.xml File
      2. Build Folder
    4. Events
    5. Custom Events
  6. 5. Becoming a Capable Control Freak
    1. Basic UI Controls
    2. Window-Based UI Controls
      1. Picker Control
      2. Option Control
    3. Creating Your Own Composite Objects
      1. The Customized Slider Object
      2. Custom Attributes on Controls
    4. More Uses for Custom Controls
    5. The Main Event
      1. Event Propagation
  7. 6. Titanium Objects
    1. App Object
      1. Storing Data in the App Object
      2. Pause and Resume Events
      3. Background Services
      4. Local Notifications
    2. Window and View Objects
    3. Window and View Layout
      1. Layout
    4. View Controllers
      1. Navigation Group
      2. TabGroup Object
      3. Conclusion
  8. 7. Customizing Titanium
    1. What’s in a Name...Space
    2. Titanium Compatibility Layer (TiCL)
      1. Version and Sharing Considerations
      2. Copying and Merging
      3. Further Compatibility
    3. Convenience Functions
    4. Titanium Modules and Their Uses
      1. How to Write a Module
      2. Titanium Mobile Marketplace
    5. Using a Titanium Module
      1. Adding the Module
      2. Referencing the Module
      3. Calling a Module from Titanium Code
      4. Appcelerator Cloud Services
  9. 8. Titanium App Storage
    1. Local File Storage
    2. Database Storage
      1. ResultSets
  10. 9. Distribution Methods
    1. Apple’s App Store
      1. Custom B2B Apps
      2. Apple’s Enterprise Distribution
    2. Android’s Marketplace
  11. 10. API Reference
    1. Titanium
    2. Titanium.API
    3. Titanium.Accelerometer
    4. Titanium.Analytics
    5. Titanium.Android
      1. Titanium.Android.currentActivity
      2. Titanium.Android.Calendar
      3. Titanium.Android.NotificationManager
    6. Titanium.App
      1. Titanium.App.Android
      2. Titanium.App.iOS
      3. Titanium.App.Properties
    7. Titanium.Codec
    8. Titanium.Contacts
    9. Titanium.Database
    10. Titanium.Facebook
    11. Titanium.Filesystem
    12. Titanium.Geolocation
    13. Titanium.Gesture
    14. Titanium.Locale
    15. Titanium.Map
    16. Titanium.Media
    17. Titanium.Network
      1. Titanium.Network.Socket
    18. Titanium.Platform
    19. Titanium.Stream
    20. Titanium.UI
      1. Titanium.UI.Android
      2. Titanium.UI.Clipboard
      3. Titanium.UI.iOS
      4. Titanium.UI.iPad
      5. Titanium.UI.iPhone
      6. Titanium.UI.MobileWeb
    21. Titanium.Utils
    22. Titanium.XML
    23. Titanium.Yahoo
  12. About the Author
  13. Colophon
  14. Copyright

Product information

  • Title: Appcelerator Titanium: Up and Running
  • Author(s): John Anderson
  • Release date: March 2013
  • Publisher(s): O'Reilly Media, Inc.
  • ISBN: 9781449329556