On my last post, I mentioned the definition of Augmented Reality (AR). Now I'm adding the word Mobile to it.
At the current time, platforms that I've tried to developed upon supporting AR are iPhone and Android. Well actually I coded once and used Titanium Developer to make the actual executable files for each platform.
Titanium offers current web standards as a mean to create those mobile applications. I'm now using Titanium Developer 1.0 with the 1.1 Mobile SDK. The requirements to be able to run Titanium and produce for iPhone & Android are:
- A decent Mac running Snow Leopard (Leopard will do). I used my Macbook and a Hackintosh hehe.
- Xcode. Get it from your installation cd that comes with your Mac.
- iPhone SDK 3.0 minimal. I used 3.1.2 on my Hackintosh and 3.1.3 on my Macbook.
- Android SDK R5
- Titanium Developer 1.0
So fire up your Titanium and let's begin the tutorial. It will start on the Dashboard module. Go ahead and click on the NEW PROJECT top left icon.
Next up, it will show a screen showing metadata and configurations for the application. Choose Mobile as the project type. Type in the application name on the name column; I'm naming it Mobile AR Demo. Identify our application and in this case, it's com.mf.ardemo. Choose the directory where our application will reside and enter a URL for it. I'm using Titanium 1.1 so I choose 1.1.0 as the Titanium SDK Version. Now if Titanium successfully found your iPhone and Android SDK path, it will show a check mark on both, if not, you will have to specify the path. Click on Create Project afterwards and it will show another screen displaying editable fields.
The most important part on Step 3 will be specifying your Application Icon. Use any 57x57 pixels icon of your choosing. It will default to Titanium's icon if not specified.
The 4 steps we did earlier is already enough to show a Hello World application on your device. If you wanna test it, you can go ahead and use the emulators. Back in Titanium, click on the Test & Package tab. I will try running on an iPhone emulator, it's chosen by default so I go ahead and choose the SDK I'm aiming for which is 3.1.2 and just click Launch. Afterward Titanium will show verbose output of what it's currently doing on the blank window. Upon success, it will immediately launch the application on the emulator.
OK so the 5 steps above wraps up Part 1 of the tutorial. Should you have any questions, drop a comment or tweet me. Thanks for tuning in ;)