Extending Appcelerator Titanium Mobile through Native Modules
Titanium Mobile
-
Upload
scott-motte -
Category
Technology
-
view
8.694 -
download
0
description
Transcript of Titanium Mobile
Titanium MobileBuild iPhone apps w/ Javascript
Who am I?
• Scott Motte / 25 / Perris, CA
• mid-level rubyist that prefers Merb
• spitfiresky.com
• twitter.com/spitfiresky
• github.com/scottmotte
Install
• Download iPhone SDK
• Download Titanium Developer
• Request Mobile access
• send a nice email (friend http://Jeromegn.com received his invite within the hour)
*http://www.appcelerator.com/products/download-titanium/download/*http://www.appcelerator.com/products/request-titanium-mobile/
Setup
• Create new app
• configure tiapp.xml
• create html/js/css
• launch emulator to check your work
tiapp.xml
tiapp.xml
• One or more <window> elements are added to create a tab bar view.
• If only one <window> tag is a child of <windows>, then by nature the view is a single view application (no tab bar).
Layout• Organize your files any way
you’d like under Resources
• /android and /iphone are for code you write specific to those platforms
• When you start off you’ll mostly be writing javascript code to open up new html windows
flights/index.html
javascripts/flights/index.js
javascripts/master.js
exceptions/unauthenticated.html
javascripts/exceptions/unauthenticated.js
flights/new.html
javascripts/flights/new.js
Launch Emulator
Available to you
AccelerometerDatabaseFilesystem
GeoLocation
GesturesEmbed sounds/videoNetwork & Platform
UI
Where to go next
• Visual API - http://github.com/kwhinnery/KitchenSink
• Written API - http://www.codestrong.com/timobile/api/
• Inspiration - http://www.appcelerator.com/appcelerator-platform/applications-showcase/