SlideShare a Scribd company logo
Titanium Mobile
writing native iPhone and Android apps with web technologies.
About Me

             Marshall Culpepper
Titanium Project Lead / Hacker Extraordinaire
                @marshall_law
           http://www.arcaner.com
       mculpepper@appcelerator.com
          http://github.com/marshall
Agenda

• Titanium Mobile Intro
• Mobile Architecture
• API Overview
• Guided Lab: Snappost
Titanium Mobile


•   UI with HTML5, CSS, Canvas. The best of the open web.

•   iPhone 2.2.1 -> 3.x support, Android 1.5 support

•   Native widgets, views with Javascript APIs - fast!

•   No need to learn multiple languages (Objective-C, Java) to be
    productive

•   Resources get compiled into a native executable - non editable
    by mere mortals
Mobile Architecture
Media API
More Media API
Geolocation API
Accelerometer API
Database API
Synchronous and Asynchronous (HTML5) APIs
Network API
XHR-style object for remote data requests
Native UI Controls
Use native controls with Javascript
Native iPhone UI


•   Tab Bar / Nav Bar

•   Table View / Group View

•   Alert / Options

•   Buttons / Sliders / Progress / Activity

•   more...
Native Android UI


•   Tab Bar

•   Table View

•   Alert / Options

•   Buttons / Sliders / Progress / Activity

•   more...
Common API
iPhone Table View           Android Table View




                Same code
Useful Resources


•   KitchenSink : Full API demo

•   Full API Reference, Platform Guides, Docs:

    •   http://codestrong.com

•   #titanium_app on irc.freenode.net

•   Support: http://support.appcelerator.net
Developer+Mobile



•   With Mobile projects, Developer deploys code to the simulator/
    emulator

•   Can also deploy directly to device (requires some setup)
Hello World app


•   Prerequisites

    •   iPhone and/or Android SDK

    •   Titanium Developer + Mobile SDK
Snappost: Our first app

•   An app that can post a photo and a message to Twitter via
    TwitPic

•   Use TwitPic REST API, Titanium, jQuery

•   Basic TwitPic spec:

    •   POST to REST API @ https://twitpic.com/api/uploadAndPost
        •   message: update message

        •   username: twitter username

        •   password: twitter password

        •   media: image binary data
Step 1: Configuration
•   $ROOT/tiapp.xml

•   Configure tabs, and their properties
Step 2: HTML, CSS, JS
•   organize $ROOT/index.html

•   code up simplistic UI, use a native button
Step 3: Create the button

•   Use Titanium.UI.createButton to create a native button
    inside the web content
Step 4: Pick a photo

•   Use Titanium.UI.openPhotoGallery to prompt for a photo
Step 5: Post to TwitPic
•   Send image blob data directly using our Native XHR
Done!
Final Thoughts



•   Titanium: Native desktop and mobile apps made simple with
    web technologies

•   In the future we hope to support Blackberry, Windows Mobile,
    Symbian

•   See Roadmap for Desktop and Mobile on Codestrong
Q/A, Titanium hackathon

More Related Content

PPTX
Intro to Ionic for Building Hybrid Mobile Applications
PPTX
App forum2015 London - Building RhoMobile Applications with Ionic
PDF
Ionic - Revolutionizing Hybrid Mobile Application Development
PDF
Intro to ionic 2
PDF
[Lighting Talk] - Ionic 2 Tour
PPTX
Wikipedia Mobile App with PhoneGap
PDF
Building Native Apps With Titanium Mobile
PDF
Ionic Framework: Let's build amazing apps. No Excuses!
Intro to Ionic for Building Hybrid Mobile Applications
App forum2015 London - Building RhoMobile Applications with Ionic
Ionic - Revolutionizing Hybrid Mobile Application Development
Intro to ionic 2
[Lighting Talk] - Ionic 2 Tour
Wikipedia Mobile App with PhoneGap
Building Native Apps With Titanium Mobile
Ionic Framework: Let's build amazing apps. No Excuses!

What's hot (20)

PDF
Debugging and Tuning Mobile Web Sites with Modern Web Browsers
PDF
Ionic 2: Mobile apps with the Web
PPTX
Rapid mobile development with Ionic framework - Voxxdays Ticino 2015
PDF
Automating PhoneGap Build
PPTX
PhoneGap: a brief history and apologia
KEY
Appcelerator Titanium - Hybrid App-Development
PDF
Creating mobile apps - an introduction to Ionic (Engage 2016)
PPTX
Hybrid app in ionic framework overview
PPTX
Mobile apps with Ionic 2
PDF
Cordova, Angularjs & Ionic @ Codeaholics
PPT
Building Hybrid Applications using PhoneGap
PPTX
Mobile Development with PhoneGap
PDF
Reark : a Reference Architecture for Android using RxJava
PDF
Hybrid app development with ionic
PDF
AngularJS on Mobile with the Ionic Framework
PPTX
Hybrid vs. Native app - Ionic Framework with AngularJS
PDF
Cordova / PhoneGap, mobile apps development with HTML5/JS/CSS
PDF
Pepperoni 2.0 - How to spice up your mobile apps
PDF
Intro to mobile apps with the ionic framework & angular js
PDF
Appcelerator Titanium Intro (2014)
Debugging and Tuning Mobile Web Sites with Modern Web Browsers
Ionic 2: Mobile apps with the Web
Rapid mobile development with Ionic framework - Voxxdays Ticino 2015
Automating PhoneGap Build
PhoneGap: a brief history and apologia
Appcelerator Titanium - Hybrid App-Development
Creating mobile apps - an introduction to Ionic (Engage 2016)
Hybrid app in ionic framework overview
Mobile apps with Ionic 2
Cordova, Angularjs & Ionic @ Codeaholics
Building Hybrid Applications using PhoneGap
Mobile Development with PhoneGap
Reark : a Reference Architecture for Android using RxJava
Hybrid app development with ionic
AngularJS on Mobile with the Ionic Framework
Hybrid vs. Native app - Ionic Framework with AngularJS
Cordova / PhoneGap, mobile apps development with HTML5/JS/CSS
Pepperoni 2.0 - How to spice up your mobile apps
Intro to mobile apps with the ionic framework & angular js
Appcelerator Titanium Intro (2014)
Ad

Viewers also liked (9)

KEY
P2PU School of Webcraft - SXSW 2011
PPTX
My scrapbook
PPTX
Mujer
PPTX
PPTX
PPTX
PPTX
Cell division
KEY
Using Titanium Mobile
P2PU School of Webcraft - SXSW 2011
My scrapbook
Mujer
Cell division
Using Titanium Mobile
Ad

Similar to Titanium Mobile Intro (20)

PPT
Titanium Meetup Deck
PPT
OSCON Titanium Tutorial
PPT
Native Mobile Application Using Open Source
KEY
Appcelerator Titanium at Mobile 2.0
ZIP
Mobile for the rest of us
KEY
Mobile 2.0 Event: Mobile for the rest of us using Appcelerator Titanium
PDF
An introduction to Titanium
PPT
Getting Started with Titanium
PPT
Getting Started with Titanium
KEY
Open Source World : Using Web Technologies to build native iPhone and Android...
ZIP
Using Web Technologies to Build Native iPhone & Android Applications
KEY
Mountain View July JavaScript Meetup at Google
KEY
SumitK's mobile app dev using drupal as base ststem
PPTX
Titanium Introduction
PPTX
Titanium Introduction
PPTX
Welcome to Titanium
PPTX
PaaS + Appcelerator = WIN
PPT
Titanium Overview (Mobile March 2011)
ZIP
Titanium @ Minnebar
ZIP
Building iPhone/Andriod Apps with Titanium Appcelerator for a Rails Backend
Titanium Meetup Deck
OSCON Titanium Tutorial
Native Mobile Application Using Open Source
Appcelerator Titanium at Mobile 2.0
Mobile for the rest of us
Mobile 2.0 Event: Mobile for the rest of us using Appcelerator Titanium
An introduction to Titanium
Getting Started with Titanium
Getting Started with Titanium
Open Source World : Using Web Technologies to build native iPhone and Android...
Using Web Technologies to Build Native iPhone & Android Applications
Mountain View July JavaScript Meetup at Google
SumitK's mobile app dev using drupal as base ststem
Titanium Introduction
Titanium Introduction
Welcome to Titanium
PaaS + Appcelerator = WIN
Titanium Overview (Mobile March 2011)
Titanium @ Minnebar
Building iPhone/Andriod Apps with Titanium Appcelerator for a Rails Backend

Recently uploaded (20)

PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPT
Teaching material agriculture food technology
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Cloud computing and distributed systems.
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Encapsulation theory and applications.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Teaching material agriculture food technology
Chapter 3 Spatial Domain Image Processing.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
CIFDAQ's Market Insight: SEC Turns Pro Crypto
“AI and Expert System Decision Support & Business Intelligence Systems”
Understanding_Digital_Forensics_Presentation.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
Encapsulation_ Review paper, used for researhc scholars
NewMind AI Weekly Chronicles - August'25 Week I
Spectral efficient network and resource selection model in 5G networks
Digital-Transformation-Roadmap-for-Companies.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Cloud computing and distributed systems.
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
The Rise and Fall of 3GPP – Time for a Sabbatical?
Encapsulation theory and applications.pdf
Unlocking AI with Model Context Protocol (MCP)
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf

Titanium Mobile Intro

  • 1. Titanium Mobile writing native iPhone and Android apps with web technologies.
  • 2. About Me Marshall Culpepper Titanium Project Lead / Hacker Extraordinaire @marshall_law http://www.arcaner.com mculpepper@appcelerator.com http://github.com/marshall
  • 3. Agenda • Titanium Mobile Intro • Mobile Architecture • API Overview • Guided Lab: Snappost
  • 4. Titanium Mobile • UI with HTML5, CSS, Canvas. The best of the open web. • iPhone 2.2.1 -> 3.x support, Android 1.5 support • Native widgets, views with Javascript APIs - fast! • No need to learn multiple languages (Objective-C, Java) to be productive • Resources get compiled into a native executable - non editable by mere mortals
  • 10. Database API Synchronous and Asynchronous (HTML5) APIs
  • 11. Network API XHR-style object for remote data requests
  • 12. Native UI Controls Use native controls with Javascript
  • 13. Native iPhone UI • Tab Bar / Nav Bar • Table View / Group View • Alert / Options • Buttons / Sliders / Progress / Activity • more...
  • 14. Native Android UI • Tab Bar • Table View • Alert / Options • Buttons / Sliders / Progress / Activity • more...
  • 15. Common API iPhone Table View Android Table View Same code
  • 16. Useful Resources • KitchenSink : Full API demo • Full API Reference, Platform Guides, Docs: • http://codestrong.com • #titanium_app on irc.freenode.net • Support: http://support.appcelerator.net
  • 17. Developer+Mobile • With Mobile projects, Developer deploys code to the simulator/ emulator • Can also deploy directly to device (requires some setup)
  • 18. Hello World app • Prerequisites • iPhone and/or Android SDK • Titanium Developer + Mobile SDK
  • 19. Snappost: Our first app • An app that can post a photo and a message to Twitter via TwitPic • Use TwitPic REST API, Titanium, jQuery • Basic TwitPic spec: • POST to REST API @ https://twitpic.com/api/uploadAndPost • message: update message • username: twitter username • password: twitter password • media: image binary data
  • 20. Step 1: Configuration • $ROOT/tiapp.xml • Configure tabs, and their properties
  • 21. Step 2: HTML, CSS, JS • organize $ROOT/index.html • code up simplistic UI, use a native button
  • 22. Step 3: Create the button • Use Titanium.UI.createButton to create a native button inside the web content
  • 23. Step 4: Pick a photo • Use Titanium.UI.openPhotoGallery to prompt for a photo
  • 24. Step 5: Post to TwitPic • Send image blob data directly using our Native XHR
  • 25. Done!
  • 26. Final Thoughts • Titanium: Native desktop and mobile apps made simple with web technologies • In the future we hope to support Blackberry, Windows Mobile, Symbian • See Roadmap for Desktop and Mobile on Codestrong