A Beginner’s Guide to Develop Mobile Apps with Titanium
Titanium is a collection of,
- The Titanium SDK tools
- The Titanium Mobile APIs
- Titanium Studio
- Appcelerator cloud services
Let understand how to install platform SDKs to develop mobile apps.
Installing the Platform SDKs to Develop Mobile Apps
In Titanium, to develop native mobile apps you need to install and use SDKs and tools for different native platforms. To develop mobile apps you need to use SDKs according to that particular platform. For instance, to develop the iOS applications you need to have a Sun/Oracle Java SDK (JDK) installed in your system.
To install the platform SDKs:
- Choose the platforms which you want to install. (Android, iOS, Blackberry, Tizen, etc.)
- Click Configure to start the final installation procedure.
By clicking on the configure button, it will starts downloading and installing each SDK for the selected mobile platforms. For iOS, studio launches the app store application which is installed on your Mac to the XCode download page.
Let’s learn how to download and install SDKs for different mobile platforms.
iOS App Development
For iOS, it will require Mac OS 10.6 (Snow Leopard) and iOS developer account. Then install the iOS SDK by following the instructions and it’s done. Now, it’s ready to use it.
Android App Development
To do app development with Android, you need to have Sun/Oracle Java SDK (JDK) installed in your system.
Download and unzip the Android SDK and then run the $ANDROID_SDK/tools/android command from the resulting directory structure. This will pop up a Java Swing UI, which let you install various Android SDK elements from the “Available Packages” menu.
You can check the Android SDK Documentation to get the list of all useful tools to guide you for the android development.
BlackBerry App Development
For Blackberry, Currently available Titanium Mobile version is in a beta preview mode which needs a windows environment on which you can install the Eclipse based development tool chain.
Let’s, Get Started with Creating a Default Application using Titanium (Example)
In this example, we are creating a simple application using titanium
Step 1: Start a Titanium Studio, Open a new Titanium Project from the File Menu.
Step 2: Now, it open a project template window and select a default project from it.
Step 3: Type your project name as “MyFirstApp” and add type an App id as com.yourCompany.MyFirstApp and click next.
Step 4: Now, Right click on your project and click on Run As -> Select the required Simulator on Emulator to run your app. The app will be installed on the target platform and it will pop up on your screen.
Output of the default application
When you run a default application on Android and iPhone it will gives you this kind of output.
Pros of Appcelerator Titanium
Appcelerator Titanium has lots of pros which help companies to select it to develop a mobile application with it. Below are some pros which guide you to select Appcelerator Titanium.
- With Appcelerator Titanium, you can easily develop the mobile application as it allows developing it in a very flexible manner by writing just few lines of code. Rather than selecting a platform to develop a mobile app, Titanium gives you the freedom to make a prototype to evaluate the user’s behavior with the UI.
- Titanium apps are developed by using the web technologies, so it’s easy to interact with a web service. This makes the development process easy and also saves the time to exchange through the remote communication.
- Appcelerator has a supportive community of 200,000+ web developers and growing more which have used it cross platform development tools build 35,000+ apps.
Cons of Appcelerator Titanium
With the effective pros Appcelerator Titanium has some cons. Here they are,
- The development costs and complexities are more. The more your applications is complex the more it creates technical problems and application development costs.
- Titanium studio is an Eclipse based IDE which is free and open source IDE, but the UI experience of this IDE is very poor.
- While start working with Titanium, you will love it, but with time you will find lots of bugs and limitations in using Titanium. So, while working on big projects, it may happen that you have to face many problems.
To develop an application with Titanium platform highly depend on the app requirements. If you require a small and simple app which supports a native feature than to go with Titanium is the best option to choose from. Titanium is an outstanding tool for rapid prototyping to turn within hours a mock up into a prototype in order to assess the customer interest or perform functionality assessments. Appcelerator Titanium is a best option that should be considered by all when you start developing a new mobile project.