DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
11 Monitoring and Observability Tools for 2023
Learn more

Getting Started With Appcelerator

James Sugrue user avatar by
James Sugrue
CORE ·
Sep. 01, 10 · Interview
Like (0)
Save
Tweet
Share
8.29K Views

Join the DZone community and get the full member experience.

Join For Free

When I started out development for mobile devices I wanted to get straight to programming for the iPhone. And as a Java programmer, Objective-C was going to prove to be an obstacle, even if temporary. I could have gone straight to Android, but I couldn't just ignore the iPhone market for my apps, could I? The answer to my problems turned out to be quite simple: Appcelerator, which provides a JavaScript API for developing mobile applications.

When I heard of the company first, they provided solutions for RIA, but now they provide a killer solution for mobile application development. From one set of source you can write a mobile application that can be deployed to the iPhone or Android. (They also provide the possibility to deploy to the iPad, but that's another article.)

Getting started with Appcelerator is quite straightforward. Here are a few tips to get you going, and speed you up even more in getting mobile apps out there. 

  • First download Appcelerator Titanium 
  • If you want to develop for the iPhone, you'll need to install on Mac OSX. There's no getting around that fact. Appcelerator cross compiles to ObjectiveC and needs the iPhone Developer SDK and XCode to be installed on your machine to do this.  
  • If you're targetting Android for your apps, you'll need to install the Android SDK. 
  • Bookmark the Titanium Mobile SDK API page.

Once you've installed and signed up, you can start creating apps. Before you do, I'd recommend downloading the Appcelerator KitchenSink example from GitHub. This shows all of the functionality that Appcelerator provides and is a great reference.

 

When you create a project, you'll soon find that the Titanium application is just for managing your project - you can't actually edit the project from Titanium. When you create a project, the structure of an application is created in the specified location. To start with the real coding go to the Resources folder of your project. That's where everything happens. 

In there "app.js" provides a starting point for your application. The default mobile project creates a simple application with two tabs.  

When you've made your changes, you'll want to see how the application looks in a simulator. To compile, go to the Test & Package section of your project (as highlighted below), and using the Run Emulator tab, click on launch.

Any compile errors will be displayed in this window, halting the launch if necessary.

There's a lot more to Appcelerator that I'll be covering in the upcoming weeks - stay tuned!

mobile app

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Accelerating Enterprise Software Delivery Through Automated Release Processes in Scaled Agile Framework (SAFe)
  • How to Use Java Event Listeners in Selenium WebDriver?
  • 5 Common Firewall Misconfigurations and How to Address Them
  • The Beauty of Java Optional and Either

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: