This document is basically notes on starting up Titanium development.
I followed the start-up notes for Linux (and Windows). All went well enough.
I went through the four, free videos. They are only useful to show how the
Titanium Developer interface works. This interface is super simple and not a
great deal of help if you were expecting something on the order of what Eclipse
or Visual Studio provide.
...which gives rise to the possibility that Eclipse rigged for use in
JavaScript development might be a big help here.
Setting up Titanium...
Begin by going to the Appcelerator site at
http://www.appcelerator.com/.
Click on the "Download Titanium" link. If you're on Windows, a .msi
(Windows installer) will offer itself. Look at the page, however, and you'll
see instructions for getting started. It's a combination of these plus links to
PDF you'll eventually encounter during the process. I'm not going to say much
more about it; it's well covered by Appcelerator.com.
Later on, you'll get to downloading Android stuff if you're planning on
targeting that platform. It's my main emphasis although the whole reason I'm
even looking at Titanium is because I don't want to learn much about writing to
the iPhone.
It's very important to install everything the Android SDK offers. Otherwise,
you'll be in big trouble for making mobile apps work. See below.
Various things I've learned
Titanium apps are written in JavaScript, yes, but only as the language to use.
There isn't much JavaScript going on inside: it's all calls into the Titanium
APIs.
If you don't stop the application by clicking Stop in Titanium, you
may have to bounce Titanium before you can get an emulator back up.
It's important to understand what's going on in the Android SDK. There are
different levels corresponding to different versions of Android and the Google
toolkits. In order to check to see that your application runs on older Android
devices, you will need to download these other versions. Also, if you're using
Titanium, you can't use the very latest Android SDK (2.2, version 8), but only
1.6.
Here's my first mobile app that does nothing, but has two tabs working.
Here's how I solved the KitchenSink problem
Sadly, the KitchenSink application failed to run. This application is crucial
to early Titanium development in that it provides an example of and call to
just about every API in the Titanium library. Others in the forum and elsewhere
on the Internet complained, but no one gave much help as to getting it up.
Here's the distributed KitchenSink app that's supposed to show me how to call
every Titanium API not working! As you can see, there is no app running on the
Android emulator:
Solution
This is from my on-line post to the forum. Someone replied to try to help, but
admittedly hadn't understood exactly what he had done to get his running. I
don't either, but I was meticulous in my list of things I did.
Here is the app working in the emulator now.
Future things to check out...
In future, I need to write an HTTP client and display a bit of text and an
image principally. I've seen grunts and groans in the forum that suggest this
is possible. Here's a list of forum entries on the questions:
"How to download and display an image?"—since we're using HTML, CSS
and JavaScript, why wouldn't this just be done using the
<img> tag in HTML?
That's it...
That's my proof of concept for Titanium. I'll return when I'm needing iPhone
support. My desire is only to circumvent iPhone and BlackBerry programming
which I'm not eager to learn. Titanium BlackBerry support is in beta since
June, 2010.
http://developer.appcelerator.com/askquestion or how to get
into the forums. I can't find a link to this anywhere in the Appcelerator
pages. I don't remember how I stumbled upon it, but I had to reach it via
an answered question notification in e-mail to figure out this URL.