Building Derby App in Titanium

Building Derby App in Titanium

Getting Started with BlackBerry

What’s in this Chapter?

History of BlackBerry

Getting a BlackBerry development setup

Creating mobile apps with BlackBerry for Java

Creating mobile apps with Web Works

Implementing the Derby App

The BlackBerry Craze

BlackBerry Devices

BlackBerry Desktop Software

Which BlackBerry OS Version to Develop For

Who Is Using the Application?

Lowest Common Denominator

Multiple Builds


Screen Resolutions

Getting the Tools You Need

BlackBerry Developer Program

BlackBerry Partner

Code Signing Keys

Installing the Signing Keys

BlackBerry Java Development Environment

BlackBerry Java Plug-in for Eclipse

Anatomy of a Java BlackBerry App

The BlackBerry Simulator

Hello World App

Create the Project

Create the User Interface

Wiring Up the Controls

Running in the Simulator

Basic UI

Java Micro Edition

Implementing the Derby App with BlackBerry for Java

User Interface

Building the Toolbar

Getting the Vixens Roster

Getting the Roster

Team Names

BlackBerry Eclipse Specifics

Installing Signing Keys

BlackBerry Development with WebWorks

WebWorks SDK

Anatomy of a BlackBerry WebWorks Project


Implementing the Derby App with WebWorks

User Interface

Getting the Roster

Appending the Roster Data to the Unordered List

Team Names

Installing Signing Keys from the Command Line


Offline Storage

BlackBerry WebWorks

BlackBerry Java

Location Services

BlackBerry WebWorks

BlackBerry Java

BlackBerry Distribution


BlackBerry Java and WebWorks both offer unique and compelling reasons for using them, with both having upsides and downsides.

RIM is innovating and changing how development is performed, which again is extremely frustrating to developers

With BlackBerry losing market share at an alarming rate, it’s important that you do not dive right into creating a BlackBerry app without ensuring that it is the best business decision.

An app aimed at state government or education may be a great fit for BlackBerry.

As with all platforms, don’t just develop for the platform because everyone else is doing it.

Chapter 10

Getting Started with Appcelerator Titanium

What’s in this Chapter?

Appcelerator Titanium was released in December 2008, and has been steadily growing in functionality since its release.

Starting with its Titanium Developer product, Appcelerator provided a single-point interface to run applications.

As features were added to the Native iOS SDK, Titanium released a new, major revision, and each minor version included bug fixes and code to bring parity between Android and iOS.

Why Use Titanium?

The primary development languages for Titanium are HTML, CSS, and JavaScript.

The compile process generates iOS and Android source code, as well as a distributable binary, respective to each platform.

By leveraging the Titanium framework developers are provided a single way to create all of their UI, transparent to the native codebase.

Who is Using Titanium?

NBC, GetGlue,

Appcelerator keeps track of its user base through the login contained within the IDE

When creating projects in Titanium Studio, your login name is registered with your project’s App Id, so Appcelerator understands how many apps you are developing

Appcelerator makes sure to let all the developers know when new features and versions are being released

Every quarter, Appcelerator, along with IDC (an IT market analysis and research firm), release their mobile developer analytics report from information gathered from developer surveys

Getting the Tools You Need

Installing Titanium Studio

Downloading the Kitchen Sink


Project Structure

Titanium Basics

Creating User interfaces

Basic UI Elements in Titanium

Basic UI View Elements in Titanium

Getting the Tools You Need

Basic UI Data/Layout Elements in Titanium


Connecting Titanium to the Markets

Versioning Your App

Building the Derby App in Titanium



Navigation (Back Stack) and Tab Groups

Modal Forms


Offline Storage


Isolated Storage

Building the Derby App in Titanium

Preferences and Settings

Web Service

JSON Is Your Friend




Titanium is not a magic bullet. It is a solid framework for developing a single codebase to deploy to multiple platforms.

Titanium allows developers to use a language they are more familiar with to create apps in a domain outside of their knowledge.

Titanium is not an exact match to native languages. Not all features of the mobile platforms are exposed (or can necessarily be exposed) in its API.

With the addition of Titanium Studio, developing in the framework has grown by leaps and bounds.

The team at Appcelerator works to pack as much functionality into their framework as possible.

Titanium is an excellent tool to learn mobile device programming, and for many projects can provide the necessary functionality to deliver a finished product.


Create an order via if you need work on such topic and many more from different disciplines.

"Order a similar paper and get 100% plagiarism free, professional written paper now!"

Order Now