Examples

A couple of example applications showcasing the different capabilities of the Titanium4j. We encourage you to customize and adapt them to suit your individual project's needs.

Prerequisites

For this tutorial we will assume that you know how to build a Titanium4j application. If not please refer to the getting started tutorial. For this is examples to work locally you will need to add the titanium4j jar to the class path. This examples were adapted and ported to Java from the awesome book Titanium Cookbook book. Make sure you get a copy :).

1. Loan Calculator

This example will show you how to use native UI Components in your application. It will also show you how to use the webview element to display web content. For this example to work you will also need to add the Touch4j library to your classpath. In this example we cover :

Get Example Source

2. My Recipies

This example will show you how to work with local and remote data sources. From simple XML and JSON handling over HTTP to using the local SQlite database. In this example we cover :

Get Example Source

3. Excercise Tracker

This example will illustrate how to integrate Google Maps and GPS. In this example we will cover :

Get Example Source

4. Holiday Memories

This example will illustrate how to enhence your apps with audio, video and the camera. In this example we will cover :

Get Example Source

5. PhotoShare

This example demonstrates how to conect your app social media and e-mail. In this example we will cover :

Get Example Source

6. Integrator

This example will show how to interact with native phones applications and APIs. In this example we will cover :

Get Example Source

7. Platforms

This example will show how to use platform differences, device information and quirks. In this example we will cover :

Get Example Source