As mentioned earlier in this chapter, all of the source code for the application is located in a single file (
app.js). For every chapter in this book, we will delete all of the code contained in this file and replace it with our own. We will iterate on it until we have a complete working application.
Now that we have opened the
app.js file and cleared all of its content, we can start working on a clean slate.
So the very first thing that we need in every application is a
Window object. Every application today has at least one window. Some of them can fill the entire screen, have no title whatsoever, or even be transparent. But they are windows nonetheless.
The Titanium API provides us with several functions ...