SlideShare una empresa de Scribd logo
1 de 56
DEVELOPINGIOS & ANDROIDAPPS USINGTITANIUM NHM TANVEER HOSSAIN KHAN HASIN HAYDER
WHY TITANIUM? ,[object Object]
DEVICE INDEPENDENT
COMMON TOOLS
NATIVE
EXTESIVE DOCUMENTATION,[object Object]
NATIVE UI
LEARNING JQUERY FOR WEB
FRIENDLY API,[object Object]
EASY TO GRASP
EXISTING WEB APP DEV 2 MOBILE APP DEV,[object Object]
DEVICE  Independent? ,[object Object]
Use titanium JavaScript library
Titanium JavaScript interpreter interprets and Call native methods.
Just like $(‘#someId’) Or Natively document.getElementById(‘someId’) Collected from - http://www.appcelerator.com/products/titanium-cross-platform-application-development/
Titanium, THE GOOD, THE BAD & THE UGLY EVERYTHING NATIVE JS/JSS DEVELOPMENT EXTENSIBLE DEPLOYMENT IS FUN BEAUTIFUL IDE
Titanium,THE GOOD, THE BAD & THE UGLY UI DESIGN IS PAIN 640 Lines of code
Titanium,THE GOOD, THE BAD & THE UGLY NOT EVERYONE’s DOGFOOD ,[object Object]
GAMES,[object Object]
Titanium, DESIGNING A SAMPLE UI var win = Ti.UI.createWindow({         backgroundColor:"#FFF" }); win.open();
Titanium, ADD a container varview = Ti.UI.createView({ 	top:10, 	left:10, height:300, 	width:300, backgroundColor:"#AAA", borderRadius:10 }); win.add(view);
Titanium, add a container varview = Ti.UI.createView({ 	top:10,left:10, height:300,width:300, backgroundColor:"#AAA", borderRadius:10 }); win.add(view);
Titanium, add a button var button = Ti.UI.createButton({ title:"ClickMe", 	top:10, left:10,            height:40, width:280 }); view.add(button);
Titanium, add a button var button = Ti.UI.createButton({ title:"ClickMe", 	top:10, left:10,  height:40, width:280 }); view.add(button);
Titanium, add a button button.addEventListener("click",  function(){    alert("Welcome to JSCon");   } );
Titanium, add a button button.addEventListener("click",  function(){     alert("Welcome to JSCon 2011");   } );
Titanium, OPEN a DIALOG vardlg = Ti.UI.createOptionDialog({ 		title:"Delete?", 		options:["Yes","No"], 		cancel:1 	}); dlg.addEventListener("click",             function(e){     alert(e.index); 	}); dlg.show();
Titanium, add a button vardlg = Ti.UI.createOptionDialog({ 		title:"Delete?", 		options:["Yes","No"], 		cancel:1 	}); dlg.addEventListener("click",              function(e){ 	    alert(e.index); 	}); dlg.show();
Titanium, LOTS OF UI ELEMENTS
Titanium,ItS NOT ONLY ABOUT UI ,[object Object]
WEB SERVICES
MEDIA ELEMENTS
NATIVE FEATUERS
ACCELEROMETER
GEOLOCATION
SOCIAL NETWORK
MONETIZATION,[object Object]
Titanium, GEOLOCATION Ti.Geolocation.getCurrentPosition(  function(e) {     if (e.error)     {         alert(’Cant locate');         return;     } } );
Titanium, Find the location Ti.Geolocation.getCurrentPositio(  function(e) {     if (e.error)     {         alert(’Cant locate'); return;     } });
Titanium,Find the location var longitude = e.coords.longitude;  var latitude = e.coords.latitude;  var altitude = e.coords.altitude;  var heading = e.coords.heading;  var accuracy = e.coords.accuracy;  var speed = e.coords.speed;
Titanium, DRAW THE MAP varmapview = Ti.Map.createView({ mapType: Ti.Map.STANDARD_TYPE,     region: {latitude: "23.7230556",        longitude: "90.4086111",      }, });
Titanium, HOW ABOUT AN APP? ?
Titanium, HOW ABOUT VEHICLE TRACKER?
Titanium, HOW ABOUT VEHICLE TRACKER?
Titanium, HOW ABOUT VEHICLE TRACKER?
Titanium, HOW ABOUT A GPS APP? HOMEWORK
Titanium, EVERYTHING SQLITE SQLite Manager
Titanium, INSTALL A DATABASE Create or open an existing database - vardb = Ti.Database.open(‘JSConf’) Use database with your default data -vardb = Ti.Database.install(   ‘bundled/JSConf.db’, ‘JSConf’)
Titanium,CREATE TABLE db.execute(‘CREATETABLE IF NOT EXISTS topics (     id INTEGER,     title TEXT, speakers TEXT,      duration INTEGER,PRIMARY KEY(id)  )’);
Titanium,INSERT varresult = db.execute(‘INSERT INTO     topics      (title, speakers, duration)VALUES (?, ?, ?, ?)‘,    ‘Titanium’, ‘Hasin & Hasan’, 30);
Titanium,INSERT ,[object Object]
Last row id ? result.getLastInsertRowId(),[object Object]
Titanium,UPDATE Successful execution ? if (result.getRowsAffected() > 0)
Titanium,DELETE var result = db.execute(‘DELETE FROM topicsWHERE       id = ?‘, 1);
Titanium,DELETE Successful execution ? if (result.getRowsAffected() > 0)
Titanium,RETRIEVE var result = db.execute(‘SELECT (id, title, speakers)    FROM topicsWHERE id = ?‘, 1);

Más contenido relacionado

Similar a Develping iOS and Android apps using Appcelerator Titanium

20110525[Taipei GTUG] titanium mobile簡介
20110525[Taipei GTUG] titanium mobile簡介20110525[Taipei GTUG] titanium mobile簡介
20110525[Taipei GTUG] titanium mobile簡介
Justin Lee
 
Codestrong 2012 breakout session hacking titanium
Codestrong 2012 breakout session   hacking titaniumCodestrong 2012 breakout session   hacking titanium
Codestrong 2012 breakout session hacking titanium
Axway Appcelerator
 
Embedded Typesafe Domain Specific Languages for Java
Embedded Typesafe Domain Specific Languages for JavaEmbedded Typesafe Domain Specific Languages for Java
Embedded Typesafe Domain Specific Languages for Java
Jevgeni Kabanov
 
Letting In the Light: Using Solr as an External Search Component
Letting In the Light: Using Solr as an External Search ComponentLetting In the Light: Using Solr as an External Search Component
Letting In the Light: Using Solr as an External Search Component
Jay Luker
 
Codestrong 2012 breakout session exploring the new titanium command line in...
Codestrong 2012 breakout session   exploring the new titanium command line in...Codestrong 2012 breakout session   exploring the new titanium command line in...
Codestrong 2012 breakout session exploring the new titanium command line in...
Axway Appcelerator
 

Similar a Develping iOS and Android apps using Appcelerator Titanium (20)

20110525[Taipei GTUG] titanium mobile簡介
20110525[Taipei GTUG] titanium mobile簡介20110525[Taipei GTUG] titanium mobile簡介
20110525[Taipei GTUG] titanium mobile簡介
 
Codestrong 2012 breakout session hacking titanium
Codestrong 2012 breakout session   hacking titaniumCodestrong 2012 breakout session   hacking titanium
Codestrong 2012 breakout session hacking titanium
 
Java 8: the good parts!
Java 8: the good parts!Java 8: the good parts!
Java 8: the good parts!
 
JavaOne 2013: Java 8 - The Good Parts
JavaOne 2013: Java 8 - The Good PartsJavaOne 2013: Java 8 - The Good Parts
JavaOne 2013: Java 8 - The Good Parts
 
Cross platform mobile development
Cross platform mobile development Cross platform mobile development
Cross platform mobile development
 
Ti.developers.meeting
Ti.developers.meetingTi.developers.meeting
Ti.developers.meeting
 
Appcelerator titanium
Appcelerator titaniumAppcelerator titanium
Appcelerator titanium
 
Embedded Typesafe Domain Specific Languages for Java
Embedded Typesafe Domain Specific Languages for JavaEmbedded Typesafe Domain Specific Languages for Java
Embedded Typesafe Domain Specific Languages for Java
 
Titanium开发者平台介绍
Titanium开发者平台介绍Titanium开发者平台介绍
Titanium开发者平台介绍
 
Parancoe and Lambico
Parancoe and LambicoParancoe and Lambico
Parancoe and Lambico
 
Where Node.JS Meets iOS
Where Node.JS Meets iOSWhere Node.JS Meets iOS
Where Node.JS Meets iOS
 
Coding Ajax
Coding AjaxCoding Ajax
Coding Ajax
 
Coding Ajax
Coding AjaxCoding Ajax
Coding Ajax
 
Letting In the Light: Using Solr as an External Search Component
Letting In the Light: Using Solr as an External Search ComponentLetting In the Light: Using Solr as an External Search Component
Letting In the Light: Using Solr as an External Search Component
 
Getting started with Appcelerator Titanium
Getting started with Appcelerator TitaniumGetting started with Appcelerator Titanium
Getting started with Appcelerator Titanium
 
Prompt engineering for iOS developers (How LLMs and GenAI work)
Prompt engineering for iOS developers (How LLMs and GenAI work)Prompt engineering for iOS developers (How LLMs and GenAI work)
Prompt engineering for iOS developers (How LLMs and GenAI work)
 
Codestrong 2012 breakout session exploring the new titanium command line in...
Codestrong 2012 breakout session   exploring the new titanium command line in...Codestrong 2012 breakout session   exploring the new titanium command line in...
Codestrong 2012 breakout session exploring the new titanium command line in...
 
Intro Open Social and Dashboards
Intro Open Social and DashboardsIntro Open Social and Dashboards
Intro Open Social and Dashboards
 
Cross Domain Web
Mashups with JQuery and Google App Engine
Cross Domain Web
Mashups with JQuery and Google App EngineCross Domain Web
Mashups with JQuery and Google App Engine
Cross Domain Web
Mashups with JQuery and Google App Engine
 
@Anywhere
@Anywhere@Anywhere
@Anywhere
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 

Develping iOS and Android apps using Appcelerator Titanium