Book Image

Appcelerator Titanium Application Development by Example Beginner's Guide

By : Darren Paul Cope
Book Image

Appcelerator Titanium Application Development by Example Beginner's Guide

By: Darren Paul Cope

Overview of this book

Appcelerator Titanium is the leading method for creating native cross-platform apps. This book guides you from the initial stages with the language right through to the submission of your app to the marketplace/app store. Specially crafted examples cover the most common requirements of an app programmer. This book will be your companion as you progress with the language."Appcelerator Titanium Application Development by Example Beginner's Guide" will guide you through the process of designing cross-platform apps using Titanium. It covers all areas of the language from installation through development to submission to the store. This book will take a hands-on approach in teaching you how to write cross-platform apps using Titanium, as well as exploring the new features of Titanium 3. Each chapter will show you how to overcome specific challenges using Titanium. You will learn how to design your apps using MVC principles and Alloy, use the cloud to your advantage, develop apps that work on tablets and phones, use the phone gadgets like the accelerometer, integrate social media, record usage using analytics, and monetise your app. All tasks from installation to deployment to the store are covered and backed by examples. The book will be your companion from your first steps with Titanium to successful live deployment.
Table of Contents (23 chapters)
Appcelerator Titanium Application Development by Example Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Glossary
Index

Time for action – creating a multiplatform interface


Perform the following steps to create a multiplatform interface:

  1. Create a new app using the Master/Detail Application template. This template includes the code to distinguish between a phone and tablet layout. A number of directories are created, as described in the following table:

    Directory

    Contents

    ui/common

    Place files that are not platform specific in here. Views such as the currency listing view shown later in this chapter will be placed in here.

    ui/handheld/android

    This directory contains files that are specific to Android phones. The ApplicationWindow.js file is executed when the app starts. This is where you start to create your UI.

    ui/handheld/ios

    This contains files that are specific to iPhones and iPods. The ApplicationWindow.js file is executed when the app starts. This is where you start to create your UI.

    ui/handheld/mobileweb

    This contains files where the layout is designed for mobile web. The ApplicationWindow...