Cover image for 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.

Table of Contents

  1. Special Upgrade Offer
  2. Preface
    1. Introduction
    2. Conventions Used in This Book
    3. Using Code Examples
    4. Safari® Books Online
    5. How to Contact Us
    6. Acknowledgments
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. 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
  10. 8. Titanium App Storage
    1. Local File Storage
    2. Database Storage
      1. ResultSets
  11. 9. Distribution Methods
    1. Apple’s App Store
      1. Custom B2B Apps
      2. Apple’s Enterprise Distribution
    2. Android’s Marketplace
  12. 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
  13. About the Author
  14. Colophon
  15. Special Upgrade Offer
  16. Copyright