Book Image

Appcelerator Titanium Smartphone App Development Cookbook Second Edition

Book Image

Appcelerator Titanium Smartphone App Development Cookbook Second Edition

Overview of this book

This book will take you through the process of building cross-platform, native UI applications for the mobile from scratch. You will learn how to develop apps, how to use GPS, cameras and photos and how to build socially connected apps. You will also learn how to package them for submission to the App Store and Google Play. This cookbook takes a pragmatic approach to creating applications in JavaScript from putting together basic UIs, to handling events and implementation of third party services such as Twitter, Facebook and Push notifications. The book shows you how to integrate datasources and server APIs, and how to use local databases. The topics covered will guide you to use Appcelerator Studio tools for all the mobile features such as Geolocation, Accelerometer, animation and more. You’ll also learn about Alloy, the Appcelerator MVC framework for rapid app development, and how to transfer data between applications using URLSchemes, enabling other developers to access and launch specific parts of your app. Finally, you will learn how to register developer accounts and publish your very own applications on the App Store and Google Play.
Table of Contents (21 chapters)
Appcelerator Titanium Smartphone App Development Cookbook Second Edition
About the Author
About the Reviewers

Installing Alloy and creating an Alloy project

If you're running the latest version of Appcelerator Studio, then Alloy should be installed for you when you run Studio for the first time. However, if you want to install it manually, or if you're running Titanium as open source with your own IDE, then you can install Alloy from the terminal.

These chapters are going to assume that you're using OS X. However, you can do all of this using Windows too.

How to do it...

Typically, when you install Appcelerator Studio, it will install the mobile SDK and any add-ons, including Alloy. You can check whether Alloy is installed by typing the following in a terminal window:

$ alloy -v

This will return the version that is currently installed. If you don't have Alloy installed, you can install it by performing a check for updates in Appcelerator Studio or as follows from the terminal:

$ sudo npm install –g alloy

Once it is installed, launch Appcelerator Studio and go to File | New | Mobile App Project. You...