31
Using Appcelerator Titanium To Build Native Android Apps Without The Native Pain Gaurav Kheterpal [email protected]

Using Appcelerator Titanium to build native android apps without the native pain

Embed Size (px)

DESCRIPTION

Slide deck for my Droidcon 2012 presentation on how you can use Appcelerator Titanium to build native android apps without the native pain

Citation preview

Page 1: Using Appcelerator Titanium to build native android apps without the native pain

Using Appcelerator Titanium To Build NativeAndroid Apps Without The

Native Pain

Gaurav [email protected]

Page 2: Using Appcelerator Titanium to build native android apps without the native pain

2

Agenda (Stay Awake, Stay

Healthy )• Quick Intro• Overview• Web vs. Native• Cross Platform Development• What is Titanium?• Titanium Mobile Architecture• Android Development With

Titanium• What is Titanium Studio?• Setting Up Titanium Studio• Why Titanium?• Case Study/ Demo• Questions and Answers

Page 3: Using Appcelerator Titanium to build native android apps without the native pain

3

Droidcon IndiaThe Journey from 2011 to 2012 and what to expect in 2013

?

Page 4: Using Appcelerator Titanium to build native android apps without the native pain

4

Quick Intro• Currently working as ‘Head – Mobility’ at Metacube in

Jaipur• Engineering Post Graduate from BITS, Pilani (Education

spoiled me)• Mobile + Web Developer With 12 Years of Industry

Experience (I’m getting old )• Regular Attendee/ Speaker at community events and

leading technology conferences• HP webOS Green Belt & webOS Ambassador for India

(Forgotten Story)• Android, iOS Developer (That’s where the mullah is)• Appcelerator Titanium Titan (Wish they paid me too )• Keen Interest in Cross-Platform Frameworks such as

Titanium, PhoneGap, Sencha Touch and others

• Father of two kids (2nd one is just 5 days old) Father and Husband to one wife

Page 5: Using Appcelerator Titanium to build native android apps without the native pain

5

Overview• Founded in 2007• Relocated from Atlanta 2008

(Believe me - there are startups in Atlanta)

• 18 employees two years back (Startup Blues)

• 200+ today, double next year (Same growth rate as India’s population?)

• Mountain View HQ• Worldwide presence• VC Funded: Storm Ventures, Sierra

Ventures, eBay (Lots of $$$)

Page 6: Using Appcelerator Titanium to build native android apps without the native pain

6

Web vs. Native

• Web – An Unlikely Hero• Easy to develop, deploy• Cross Platform (Really?)• Open Standards (Flash

killed!)• Leverage Your Web

Development Skills (But Native is Cool)

• Designer vs. Developers• Performance• Offline• Hardware Interaction• Triple Play - Mobile, Social And

Cloud

Page 7: Using Appcelerator Titanium to build native android apps without the native pain

7

Web vs. Native

Page 8: Using Appcelerator Titanium to build native android apps without the native pain

8

Cross Platform Development

Cross-Platform !== “Write Once, Run Everywhere”

• Cross-Platform in Titanium means:• Lots of UI code reuse, depending on design• Best-in-class experience on every platform• “Write Once, Adapt Everywhere”

Page 9: Using Appcelerator Titanium to build native android apps without the native pain

9

What is Titanium?

Website: http://appcelerator.comTwitter: http://twitter.com/appceleratorSource: http://github.com/appcelerator

Titanium is an open source framework for building native desktop and mobile

applications using open web technologies (HTML, CSS, and JavaScript)

Page 10: Using Appcelerator Titanium to build native android apps without the native pain

10

What is Titanium?

Integrated Mobile Platform

for Enterprise and Consumer

Applications

Page 11: Using Appcelerator Titanium to build native android apps without the native pain

11

What is Titanium?

Titanium applications are divided into 4 main parts:• HTML/CSS/javascript code that makes up the core application

logic and UI• APIs that access native device/desktop functionality,

analytics or other modular functionality• The language-OS bridge that compiles web code into native

application code• The run-time shell that packages the application for cross-

platform distribution.

Page 12: Using Appcelerator Titanium to build native android apps without the native pain

12

Titanium Mobile Architecture

Page 13: Using Appcelerator Titanium to build native android apps without the native pain

13

Android Development With

Titanium

Page 14: Using Appcelerator Titanium to build native android apps without the native pain

14

Android Development With

Titanium

Page 15: Using Appcelerator Titanium to build native android apps without the native pain

15

Android Development With

Titanium

Page 16: Using Appcelerator Titanium to build native android apps without the native pain

16

Android Development With

Titanium

Page 17: Using Appcelerator Titanium to build native android apps without the native pain

17

Android Development With

Titanium

Page 18: Using Appcelerator Titanium to build native android apps without the native pain

18

Android Development With

Titanium

Page 19: Using Appcelerator Titanium to build native android apps without the native pain

19

Android Development With

Titanium

Page 20: Using Appcelerator Titanium to build native android apps without the native pain

20

What is Titanium Studio?

Page 21: Using Appcelerator Titanium to build native android apps without the native pain

21

Setting Up Titanium Studio

Page 22: Using Appcelerator Titanium to build native android apps without the native pain

22

Using Titanium Studio

Page 23: Using Appcelerator Titanium to build native android apps without the native pain

23

Why Titanium?• Core SDK is Free as in really FREE

• Open Source under Apache 2.0

• Thriving Developer Community

• Commercial training and support services available

Page 24: Using Appcelerator Titanium to build native android apps without the native pain

24

Why Titanium?• Data-driven web service clients (Enterprise

applications)

• Web service mash-ups

• Social utilities

• Brand affinity

• Casual games

• Anything requiring cross-platform support

Page 25: Using Appcelerator Titanium to build native android apps without the native pain

25

Why Titanium?

Page 26: Using Appcelerator Titanium to build native android apps without the native pain

26

Why Titanium?

Page 27: Using Appcelerator Titanium to build native android apps without the native pain

27

Why Titanium?• Maintain Platform Identity (Back Button for Android?)

Page 28: Using Appcelerator Titanium to build native android apps without the native pain

28

Case Study

Page 29: Using Appcelerator Titanium to build native android apps without the native pain

29

Case Study

Page 30: Using Appcelerator Titanium to build native android apps without the native pain

30

Case Study

Page 31: Using Appcelerator Titanium to build native android apps without the native pain

31

Q&[email protected]

@gauravkheterpalhttp://developer.appcelerator.com