Directory structure

The directory structure of your application is critical to its maintainability, so our recommendation is that you use a sensible naming convention and place the relevant code within them. This makes it much easier to find and maintain the code. Within Titanium you have some predefined directories and application-wide files, including:

/* The directory overview */

i18n/
   en/
      strings.xml

Resources/
    android/
    iphone/
    app.js

tiapp.xml

The i18n directory is where the multilingual capabilities of Titanium are applied. Resources contains all the actual application code and assets, tiapp.xml is contained within the parent directory and contains all of your application-specific settings such as module includes, app identifier, and publisher ...

Get Appcelerator Titanium: Patterns and Best Practices now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.