PacktLib: Appcelerator Titanium Application Development by Example Beginner's Guide

Appcelerator Titanium Application Development by Example Beginner's Guide

Credits

About the Author

About the Reviewers

www.PacktPub.com

Preface

How to Get Up and Running with Titanium

System requirements and restrictions

Installing Titanium

Time for action – installing Titanium Studio

Setting up Titanium Studio

Time for action – setting up Titanium Studio

Installing the Android SDK

Time for action – configuring the Android SDK

Installing the iOS SDK

Time for action – configuring the iOS SDK

Installation problems – did something go wrong?

Your first cross-platform app

Time for action – creating an app from a template

Time for action – running an app in the emulator

A review of the first app

tiapp.xml

Summary

How to Make an Interface

What's in the toolkit?

A recap

Window

Tab group and tabs

Labels

Views

Time for action – adding a view to a window

Time for action – adding a button to a view

Time for action – making something happen when the button is pressed

Adding a settings screen – a TableView masterclass

Time for action – adding a new window

Time for action – adding a styled TableViewRow object

Platform-specific tools

Time for action – adding an Android menu

Time for action – running the Android menu changes on iOS

Time for action – add an iOS fix for the Android menu

Capturing debug messages

Time for action – adding an info button to the navigation bar

Summary

How to Design Titanium Apps

JSON

Extending your app over multiple files

Time for action – creating an activity indicator

Require

Time for action – adding an Appcelerator marketplace module

MVC

Time for action – creating a better designed app using MVC

Behind the scenes – a look at the code

Alloy

Time for action – creating an Alloy app

Summary

Gluing Your App Together with Events, Variables, and Callbacks

Sharing data

Global variables

Time for action – sharing information between windows

Events


Time for action – creating a progress bar game

Summary

It's All About Data

External data

Time for action – creating an HTTP request

RSS reader

Time for action – fetching RSS

Time for action – parsing and displaying the RSS

Storing data on the device

Storing data in files

Storing settings in Ti.App.Properties

Time for action – comparing the speed of database, file, and application properties

YQL

Time for action – creating a foreign exchange list

Summary

Cloud-enabling Your Apps

Before the cloud

Which cloud services can you use with Titanium?

Appcelerator Cloud Services

Time for action – creating ACS custom objects

Uploading pictures

Time for action – uploading a photo to the cloud

Fetching ACS stored content

Time for action – creating a panel to show commentary entries

Parse

Time for action – storing custom objects using Parse

StackMob

Other cloud offerings

Choosing your cloud service

Summary

Putting the Phone Gadgets to Good Use

The camera

Time for action – using the camera

Time for action – selecting a photo from the photo library

The accelerometer

Time for action – showing the accelerometer on a slider

Time for action – smoothing the accelerometer response

The compass

Time for action – displaying the compass heading

Augmented reality

Time for action – creating a simple augmented reality app

Maps

Time for action – adding a map

Time for action – adding annotations to a map

Directions

Time for action – adding directions to a map

Geolocation

Accuracy and battery life

Time for action – getting the current location

Computing the distance from a coordinate

Time for action – getting the distance from a coordinate

Showing the user's current location on a map

Time for action – showing the user's location on the map

Summary

Creating Beautiful Interfaces

How to position and size items on a window?

Time for action - making DIPs the default unit for your app

Orientation

Time for action – restricting the orientation of your app (iPhone)

Time for action – restricting the orientation of your app [Android]

Time for action – forcing an orientation change (all platforms)

Creating layouts for phones and tablets

Time for action – creating a multiplatform interface

Time for action – creating a phone layout for your app

Summary

Spread the Word with Social Media

Facebook

Time for action – registering your app with Facebook

Time for action – sending a screenshot to Facebook

Sending tweets

Time for action – registering your app with Twitter

Time for action – sending a tweet

Sharing and social media on Android

Time for action – sharing an update using intents

Summary

Sending Notifications

How push notifications work

Setting up notifications - the prerequisites

Time for action – getting a push certificate

Push notifications using Appcelerator Cloud

Time for action – registering for push notifications with Appcelerator Cloud

Push notifications using Urban Airship

Time for action – registering for push notifications with Urban Airship

Time for action – registering a device for push notifications

Summary

Testing and Deploying

Registering your app with Apple

Time for action – registering your app with Apple

Time for action – installing a development certificate

Running the app on devices

Time for action – running the app on an iOS device

Time for action – configuring your Android device

Debug your app

Publishing your app

Time for action – deploying the app to the Apple App Store

Time for action – deploying the app to Google Play

Summary

Analytics

Comparing the providers

Flurry

Time for action – setting up Flurry

Time for action – registering a page view

Time for action – registering a custom event

Google Analytics

Time for action – setting up Google Analytics

Time for action – registering a page view

Time for action – registering a custom event

Analytics using Appcelerator

Time for action – setting up Appcelerator Analytics

Time for action – registering a custom event

Other suppliers

Summary

Making Money from Your App

Displaying adverts in your app

Time for action – configuring Google AdMob

Time for action – incorporating AdMob into your app

In-app purchases

Time for action – adding in-app purchases for iOS

Time for action – adding in-app purchases for Android

Summary

Git Integration

Git Integration

Git Integration

Git Integration

Git Integration

Glossary

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Index