SlideShare a Scribd company logo
1 of 51
Getting started with Titanium

    - Next-Generation Mobile Platform
About Me…

• Naga Harish
• AnuBaVam is my company
• Appcelerator Titanium certified developer




• My Blog : ShareOurIdeas.com
• @nagaharishmovva
Titanium Mobile
           Application Source Files




                 Our Application

UI API           Phone API            Optional Modules

Bridge - JavaScript -Java / JavaScript - Objective C

              OS - Android / iPhone


  Native Android App                     Native iOS App
JS files to native objective code

• JS is statically analyzed
• Ti’s Python build scripts interact with native
  SDK tools .
• Native project stub will created
• JS precompiled to bytecode(Android) or
  inlined in a generated C file(iOS)
• Your JS and native code package together with
  V8/Rhino or JavaScriptCore to interpret JS
  code at runtime
To start development…

•   PC or Mac machine (for iOS development)
•   XCode with iOS SDK
•   Android SDK
•   Titanium Studio with SDK
Small intro about Titanium Studio…

• Powerful Eclipse-based IDE
• It will help you create, run for test and deploy
  (to app store)
Ti Studio (why it so powerful)…

• It always notifies you about latest SDK and
  Studio updates .
Ti Studio (why it so powerful)…

• It is so smart, because it catches mistakes
  immediately!
Ti Studio (why it so powerful)…

• Syntax highlighting
Ti Studio (why it so powerful)…

• Content assist and more…
Project structure…
LET’S GET INTO THE INTERESTING
PART. CODING…
Create Window




We can also set properties like this
win.backgroundColor="#F00";
win.setBackgroundColor("#F00");
Create Label
Create Button
Create Button
Create button with add event listener
Add sub view to Window or View
Log methods
Animate with UI elements
                    Before start




                    After complete
Every software engineer’s first program
                                          IDE
HELLO WORLD                               Create new project
                                          Folder structure
                                          Build folder
                                          Error handling (@ runtime)
                                          Include JS file
Connect to Web Services




open( “GET|POST”, “*HTTP://URL…+”, “*TRUE|FLASE – async call+”+ )
This async parameter only for iOS
Connect to Web Services

• How to send data using post method?




• How to stop request
Keep your app fresh. Use web services

REQUEST.OPEN(“SHOW”,”DEMO”)
Database

• Install will copy SQLite database file to
  device's internal storage. If file is there, it just
  uses the open method

• We can use Ti.App.Properties to set db install
  to true. For E.g. Ti.App.Properties. setBool(‘isDbInstalled’,true)
• Open will automatically open the DB to
  perform CRUD operations
Database code snippets

• Running SQL Queries against the DB



• We can also get number of Rows affected
Database code snippets

• What about SELECT Query?
CRUD operations

DATABASE.OPEN(“DEMO”)
Internationalization

• Create 2 letter folder inside “i18n” (18 stands
  for the number of letters between the first i
  and last n in internationalization) in root
  folder.
• Create Locale folder in it
• In that Locale folder just keep strings.xml



                                    http://bit.ly/TiLang
Our App in different languages

• strings.xml




                               http://bit.ly/TiLang
今すぐデモ...

私のアプリケーション
Applying Styles using JSS

• Just like CSS, we can use this JSS to bring rich
  user interface to apply styles to elements.
• Yes, here also we can create “Class” and “ID”.
  Just like .classname or #Idname
• How to include JSS in our view?
  – Just retain same name for the .JSS file
  – For Example :- ui.js and the JSS file ui.jss
CSS and JSS

#idName                       #idname
{                             {
 color:#f00;                   color:#f00;
 height:100px;                 height:100;
 width:100px;                  width:100;
}                              text:”This is my CSS Text”;
                              }
.className                    .className
{                             {
backgroundColor:#fff;          backgroundColor:#fff;
}                             }
Let’s apply style

JSS {DEMO:’NOW’}
Cloud Service


•   Create a server backed for your app instantly
•   Launch and scale your app automatically
•   No server coding or administration required
•   Reduced Cost
Cloud Service (cont)

•   Standard(Tier 1)
     –   Users
     –   Key Values
     –   Photos
     –   Custom objects
     –   Email Templates
     –   Push notifications
•   Advanced(Tier 2)
     –   Chat
     –   Check-ins
     –   Social integration
     –   Photo Collections
     –   Clients
     –   Places
     –   Status
     –   Ratings, Reviews & Likes
     –   Posts


http://bit.ly/TiCloud                        http://bit.ly/TiCloudBook
Cloud Service (cont)




http://bit.ly/TiCloud           http://bit.ly/TiCloudBook
Cloud Service (cont)




http://bit.ly/TiCloud           http://bit.ly/TiCloudBook
Cloud Service (cont)




http://bit.ly/TiCloud           http://bit.ly/TiCloudBook
Cloud Service (cont)




http://bit.ly/TiCloud           http://bit.ly/TiCloudBook
Cloud Service (cont)




 https://api.cloud.appcelerator.com/v1/users/create.json?key=[Key Value]
http://bit.ly/TiCloud                        http://bit.ly/TiCloudBook
Extend Ti API


• We can also create a Module atop Titanium
  using native code (Objective C or Java)
• We can get more Free/$ modules from the
  marketplace
• You can also contribute!


                               http://bit.ly/TiMarket
Useful Ti Modules
Macro


•   Ti for Titanium
•   L for Titanium.Locale.getString
•   alert for Titanium.UI.createAlertDialog
•   And also remember about Code snippets
    – For e.g. :- button then {ctrl + space} and see the
      magic..
Few more code snippets

File system
Few more code snippets (cont)…
Few more code snippets (cont)…
iOS




Android
To know more….
http://bit.ly/TiMyPage      http://bit.ly/TiVimeo      http://bit.ly/TiCloud




http://bit.ly/TiTutorial    http://bit.ly/TiLearning   http://bit.ly/Ti7Days
To know more (code github)….

• https://github.com/appcelerator
• https://github.com/appcelerator-developer-
  relations
• https://github.com/BradBroulik/titanium-mvc
• https://github.com/tanin47/silver
• https://github.com/railskarthi/acs_custom_objec
  t_query
• https://github.com/railskarthi/acs_android_push
• https://github.com/guilhermechapiewski/titaniu
  m-jasmine/
http://bit.ly/TiURLs
Naga Harish M
ShareOurIdeas.com

More Related Content

What's hot

Ti.conf titanium on firefoxos
Ti.conf titanium on firefoxosTi.conf titanium on firefoxos
Ti.conf titanium on firefoxosAlessio Ricco
 
How React Native, Appium and me made each other shine @ContinuousDeliveryAmst...
How React Native, Appium and me made each other shine @ContinuousDeliveryAmst...How React Native, Appium and me made each other shine @ContinuousDeliveryAmst...
How React Native, Appium and me made each other shine @ContinuousDeliveryAmst...Wim Selles
 
Getting Started with Titanium
Getting Started with TitaniumGetting Started with Titanium
Getting Started with TitaniumKevin Whinnery
 
TiCalabash: Fully automated Acceptance Testing @ TiConf EU 2014
TiCalabash: Fully automated Acceptance Testing @ TiConf EU 2014TiCalabash: Fully automated Acceptance Testing @ TiConf EU 2014
TiCalabash: Fully automated Acceptance Testing @ TiConf EU 2014Andrew McElroy
 
Mobile App Testing ScanAgile 2012
Mobile App Testing ScanAgile 2012Mobile App Testing ScanAgile 2012
Mobile App Testing ScanAgile 2012Daniel Knott
 
Lotusphere 2011 Jmp103 - Jumpstart Your "Jedi Plug-in Development Skills" wi...
Lotusphere 2011  Jmp103 - Jumpstart Your "Jedi Plug-in Development Skills" wi...Lotusphere 2011  Jmp103 - Jumpstart Your "Jedi Plug-in Development Skills" wi...
Lotusphere 2011 Jmp103 - Jumpstart Your "Jedi Plug-in Development Skills" wi...Ryan Baxter
 
Appium workshop technopark trivandrum
Appium workshop technopark trivandrumAppium workshop technopark trivandrum
Appium workshop technopark trivandrumSyam Sasi
 
Appium basics
Appium basicsAppium basics
Appium basicsSyam Sasi
 
Appium Meetup #2 - Mobile Web Automation Introduction
Appium Meetup #2 - Mobile Web Automation IntroductionAppium Meetup #2 - Mobile Web Automation Introduction
Appium Meetup #2 - Mobile Web Automation Introductionsnevesbarros
 
Debugging IE Performance Issues with xperf, ETW and NavigationTiming
Debugging IE Performance Issues with xperf, ETW and NavigationTimingDebugging IE Performance Issues with xperf, ETW and NavigationTiming
Debugging IE Performance Issues with xperf, ETW and NavigationTimingNicholas Jansma
 
Different Android Test Automation Frameworks - What Works You the Best?
Different Android Test Automation Frameworks - What Works You the Best?Different Android Test Automation Frameworks - What Works You the Best?
Different Android Test Automation Frameworks - What Works You the Best?Bitbar
 
[Devoxx Morocco 2015] Apache Cordova In Action
[Devoxx Morocco 2015] Apache Cordova In Action[Devoxx Morocco 2015] Apache Cordova In Action
[Devoxx Morocco 2015] Apache Cordova In ActionHazem Saleh
 
OSCON Titanium Tutorial
OSCON Titanium TutorialOSCON Titanium Tutorial
OSCON Titanium TutorialKevin Whinnery
 
LEARNING  iPAD STORYBOARDS IN OBJ-­‐C LESSON 1
LEARNING	 iPAD STORYBOARDS IN OBJ-­‐C LESSON 1LEARNING	 iPAD STORYBOARDS IN OBJ-­‐C LESSON 1
LEARNING  iPAD STORYBOARDS IN OBJ-­‐C LESSON 1Rich Helton
 
10 Golden Rules For Outstanding Titanium Apps
 10 Golden Rules For Outstanding Titanium Apps 10 Golden Rules For Outstanding Titanium Apps
10 Golden Rules For Outstanding Titanium Appsjamessugrue
 

What's hot (18)

Ti.conf titanium on firefoxos
Ti.conf titanium on firefoxosTi.conf titanium on firefoxos
Ti.conf titanium on firefoxos
 
How React Native, Appium and me made each other shine @ContinuousDeliveryAmst...
How React Native, Appium and me made each other shine @ContinuousDeliveryAmst...How React Native, Appium and me made each other shine @ContinuousDeliveryAmst...
How React Native, Appium and me made each other shine @ContinuousDeliveryAmst...
 
Getting Started with Titanium
Getting Started with TitaniumGetting Started with Titanium
Getting Started with Titanium
 
TiCalabash: Fully automated Acceptance Testing @ TiConf EU 2014
TiCalabash: Fully automated Acceptance Testing @ TiConf EU 2014TiCalabash: Fully automated Acceptance Testing @ TiConf EU 2014
TiCalabash: Fully automated Acceptance Testing @ TiConf EU 2014
 
Mobile App Testing ScanAgile 2012
Mobile App Testing ScanAgile 2012Mobile App Testing ScanAgile 2012
Mobile App Testing ScanAgile 2012
 
Lotusphere 2011 Jmp103 - Jumpstart Your "Jedi Plug-in Development Skills" wi...
Lotusphere 2011  Jmp103 - Jumpstart Your "Jedi Plug-in Development Skills" wi...Lotusphere 2011  Jmp103 - Jumpstart Your "Jedi Plug-in Development Skills" wi...
Lotusphere 2011 Jmp103 - Jumpstart Your "Jedi Plug-in Development Skills" wi...
 
Appium workshop technopark trivandrum
Appium workshop technopark trivandrumAppium workshop technopark trivandrum
Appium workshop technopark trivandrum
 
Android programming-basics
Android programming-basicsAndroid programming-basics
Android programming-basics
 
Appium basics
Appium basicsAppium basics
Appium basics
 
Appium Meetup #2 - Mobile Web Automation Introduction
Appium Meetup #2 - Mobile Web Automation IntroductionAppium Meetup #2 - Mobile Web Automation Introduction
Appium Meetup #2 - Mobile Web Automation Introduction
 
Debugging IE Performance Issues with xperf, ETW and NavigationTiming
Debugging IE Performance Issues with xperf, ETW and NavigationTimingDebugging IE Performance Issues with xperf, ETW and NavigationTiming
Debugging IE Performance Issues with xperf, ETW and NavigationTiming
 
React Native
React NativeReact Native
React Native
 
Different Android Test Automation Frameworks - What Works You the Best?
Different Android Test Automation Frameworks - What Works You the Best?Different Android Test Automation Frameworks - What Works You the Best?
Different Android Test Automation Frameworks - What Works You the Best?
 
[Devoxx Morocco 2015] Apache Cordova In Action
[Devoxx Morocco 2015] Apache Cordova In Action[Devoxx Morocco 2015] Apache Cordova In Action
[Devoxx Morocco 2015] Apache Cordova In Action
 
OSCON Titanium Tutorial
OSCON Titanium TutorialOSCON Titanium Tutorial
OSCON Titanium Tutorial
 
LEARNING  iPAD STORYBOARDS IN OBJ-­‐C LESSON 1
LEARNING	 iPAD STORYBOARDS IN OBJ-­‐C LESSON 1LEARNING	 iPAD STORYBOARDS IN OBJ-­‐C LESSON 1
LEARNING  iPAD STORYBOARDS IN OBJ-­‐C LESSON 1
 
10 Golden Rules For Outstanding Titanium Apps
 10 Golden Rules For Outstanding Titanium Apps 10 Golden Rules For Outstanding Titanium Apps
10 Golden Rules For Outstanding Titanium Apps
 
Android studio
Android studioAndroid studio
Android studio
 

Similar to Getting started with Appcelerator Titanium

Extending Appcelerator Titanium Mobile through Native Modules
Extending Appcelerator Titanium Mobile through Native ModulesExtending Appcelerator Titanium Mobile through Native Modules
Extending Appcelerator Titanium Mobile through Native Modulesomorandi
 
Intro to Appcelerator Titanium - Code for Fort Lauderdale 2015
Intro to Appcelerator Titanium - Code for Fort Lauderdale 2015Intro to Appcelerator Titanium - Code for Fort Lauderdale 2015
Intro to Appcelerator Titanium - Code for Fort Lauderdale 2015Adam Paxton
 
The Big Easy: Native Mobile App Development with Appcelerator Titanium and Ja...
The Big Easy: Native Mobile App Development with Appcelerator Titanium and Ja...The Big Easy: Native Mobile App Development with Appcelerator Titanium and Ja...
The Big Easy: Native Mobile App Development with Appcelerator Titanium and Ja...Adam Paxton
 
Titanium Studio [Updated - 18/12/2011]
Titanium Studio [Updated - 18/12/2011]Titanium Studio [Updated - 18/12/2011]
Titanium Studio [Updated - 18/12/2011]Sentinel Solutions Ltd
 
Modeveast Appcelerator Presentation
Modeveast Appcelerator PresentationModeveast Appcelerator Presentation
Modeveast Appcelerator PresentationAaron Saunders
 
Native script overview
Native script overviewNative script overview
Native script overviewBaskar rao Dsn
 
Survival Strategies for API Documentation: Presentation to Southwestern Ontar...
Survival Strategies for API Documentation: Presentation to Southwestern Ontar...Survival Strategies for API Documentation: Presentation to Southwestern Ontar...
Survival Strategies for API Documentation: Presentation to Southwestern Ontar...Tom Johnson
 
Effective Collaboration & Delivery with GitHub and AWS Code Deploy – GitHub
Effective Collaboration & Delivery with GitHub and AWS Code Deploy – GitHubEffective Collaboration & Delivery with GitHub and AWS Code Deploy – GitHub
Effective Collaboration & Delivery with GitHub and AWS Code Deploy – GitHubAmazon Web Services
 
Native Mobile Application Using Open Source
Native Mobile Application Using Open SourceNative Mobile Application Using Open Source
Native Mobile Application Using Open SourceAxway Appcelerator
 
2.28.17 Introducing DSpace 7 Webinar Slides
2.28.17 Introducing DSpace 7 Webinar Slides2.28.17 Introducing DSpace 7 Webinar Slides
2.28.17 Introducing DSpace 7 Webinar SlidesDuraSpace
 
A Tale of Two Pizzas: Accelerating Software Delivery with AWS Developer Tools
A Tale of Two Pizzas: Accelerating Software Delivery with AWS Developer ToolsA Tale of Two Pizzas: Accelerating Software Delivery with AWS Developer Tools
A Tale of Two Pizzas: Accelerating Software Delivery with AWS Developer ToolsAmazon Web Services
 
Native script overview
Native script overviewNative script overview
Native script overviewBaskar rao Dsn
 
iOS Application Security
iOS Application SecurityiOS Application Security
iOS Application SecurityEgor Tolstoy
 
Frontend APIs powering fast paced product iterations
Frontend APIs powering fast paced product iterationsFrontend APIs powering fast paced product iterations
Frontend APIs powering fast paced product iterationsKarthik Ramgopal
 
Office 365 Saturday (Sydney) - SharePoint framework – build integrated user e...
Office 365 Saturday (Sydney) - SharePoint framework – build integrated user e...Office 365 Saturday (Sydney) - SharePoint framework – build integrated user e...
Office 365 Saturday (Sydney) - SharePoint framework – build integrated user e...Anupam Ranku
 

Similar to Getting started with Appcelerator Titanium (20)

Intro to appcelerator
Intro to appceleratorIntro to appcelerator
Intro to appcelerator
 
Extending Appcelerator Titanium Mobile through Native Modules
Extending Appcelerator Titanium Mobile through Native ModulesExtending Appcelerator Titanium Mobile through Native Modules
Extending Appcelerator Titanium Mobile through Native Modules
 
Nativescript
NativescriptNativescript
Nativescript
 
Titanium Alloy Tutorial
Titanium Alloy TutorialTitanium Alloy Tutorial
Titanium Alloy Tutorial
 
Intro to Appcelerator Titanium - Code for Fort Lauderdale 2015
Intro to Appcelerator Titanium - Code for Fort Lauderdale 2015Intro to Appcelerator Titanium - Code for Fort Lauderdale 2015
Intro to Appcelerator Titanium - Code for Fort Lauderdale 2015
 
Titanium #MDS13
Titanium #MDS13Titanium #MDS13
Titanium #MDS13
 
The Big Easy: Native Mobile App Development with Appcelerator Titanium and Ja...
The Big Easy: Native Mobile App Development with Appcelerator Titanium and Ja...The Big Easy: Native Mobile App Development with Appcelerator Titanium and Ja...
The Big Easy: Native Mobile App Development with Appcelerator Titanium and Ja...
 
Titanium Studio [Updated - 18/12/2011]
Titanium Studio [Updated - 18/12/2011]Titanium Studio [Updated - 18/12/2011]
Titanium Studio [Updated - 18/12/2011]
 
Modeveast Appcelerator Presentation
Modeveast Appcelerator PresentationModeveast Appcelerator Presentation
Modeveast Appcelerator Presentation
 
Native script overview
Native script overviewNative script overview
Native script overview
 
iOS Application Exploitation
iOS Application ExploitationiOS Application Exploitation
iOS Application Exploitation
 
Survival Strategies for API Documentation: Presentation to Southwestern Ontar...
Survival Strategies for API Documentation: Presentation to Southwestern Ontar...Survival Strategies for API Documentation: Presentation to Southwestern Ontar...
Survival Strategies for API Documentation: Presentation to Southwestern Ontar...
 
Effective Collaboration & Delivery with GitHub and AWS Code Deploy – GitHub
Effective Collaboration & Delivery with GitHub and AWS Code Deploy – GitHubEffective Collaboration & Delivery with GitHub and AWS Code Deploy – GitHub
Effective Collaboration & Delivery with GitHub and AWS Code Deploy – GitHub
 
Native Mobile Application Using Open Source
Native Mobile Application Using Open SourceNative Mobile Application Using Open Source
Native Mobile Application Using Open Source
 
2.28.17 Introducing DSpace 7 Webinar Slides
2.28.17 Introducing DSpace 7 Webinar Slides2.28.17 Introducing DSpace 7 Webinar Slides
2.28.17 Introducing DSpace 7 Webinar Slides
 
A Tale of Two Pizzas: Accelerating Software Delivery with AWS Developer Tools
A Tale of Two Pizzas: Accelerating Software Delivery with AWS Developer ToolsA Tale of Two Pizzas: Accelerating Software Delivery with AWS Developer Tools
A Tale of Two Pizzas: Accelerating Software Delivery with AWS Developer Tools
 
Native script overview
Native script overviewNative script overview
Native script overview
 
iOS Application Security
iOS Application SecurityiOS Application Security
iOS Application Security
 
Frontend APIs powering fast paced product iterations
Frontend APIs powering fast paced product iterationsFrontend APIs powering fast paced product iterations
Frontend APIs powering fast paced product iterations
 
Office 365 Saturday (Sydney) - SharePoint framework – build integrated user e...
Office 365 Saturday (Sydney) - SharePoint framework – build integrated user e...Office 365 Saturday (Sydney) - SharePoint framework – build integrated user e...
Office 365 Saturday (Sydney) - SharePoint framework – build integrated user e...
 

Recently uploaded

Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxLigayaBacuel1
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 

Recently uploaded (20)

Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptx
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 

Getting started with Appcelerator Titanium

  • 1. Getting started with Titanium - Next-Generation Mobile Platform
  • 2. About Me… • Naga Harish • AnuBaVam is my company • Appcelerator Titanium certified developer • My Blog : ShareOurIdeas.com • @nagaharishmovva
  • 3. Titanium Mobile Application Source Files Our Application UI API Phone API Optional Modules Bridge - JavaScript -Java / JavaScript - Objective C OS - Android / iPhone Native Android App Native iOS App
  • 4. JS files to native objective code • JS is statically analyzed • Ti’s Python build scripts interact with native SDK tools . • Native project stub will created • JS precompiled to bytecode(Android) or inlined in a generated C file(iOS) • Your JS and native code package together with V8/Rhino or JavaScriptCore to interpret JS code at runtime
  • 5. To start development… • PC or Mac machine (for iOS development) • XCode with iOS SDK • Android SDK • Titanium Studio with SDK
  • 6. Small intro about Titanium Studio… • Powerful Eclipse-based IDE • It will help you create, run for test and deploy (to app store)
  • 7. Ti Studio (why it so powerful)… • It always notifies you about latest SDK and Studio updates .
  • 8. Ti Studio (why it so powerful)… • It is so smart, because it catches mistakes immediately!
  • 9. Ti Studio (why it so powerful)… • Syntax highlighting
  • 10. Ti Studio (why it so powerful)… • Content assist and more…
  • 12. LET’S GET INTO THE INTERESTING PART. CODING…
  • 13. Create Window We can also set properties like this win.backgroundColor="#F00"; win.setBackgroundColor("#F00");
  • 17. Create button with add event listener
  • 18. Add sub view to Window or View
  • 20. Animate with UI elements Before start After complete
  • 21. Every software engineer’s first program IDE HELLO WORLD Create new project Folder structure Build folder Error handling (@ runtime) Include JS file
  • 22. Connect to Web Services open( “GET|POST”, “*HTTP://URL…+”, “*TRUE|FLASE – async call+”+ ) This async parameter only for iOS
  • 23. Connect to Web Services • How to send data using post method? • How to stop request
  • 24. Keep your app fresh. Use web services REQUEST.OPEN(“SHOW”,”DEMO”)
  • 25. Database • Install will copy SQLite database file to device's internal storage. If file is there, it just uses the open method • We can use Ti.App.Properties to set db install to true. For E.g. Ti.App.Properties. setBool(‘isDbInstalled’,true) • Open will automatically open the DB to perform CRUD operations
  • 26. Database code snippets • Running SQL Queries against the DB • We can also get number of Rows affected
  • 27. Database code snippets • What about SELECT Query?
  • 29. Internationalization • Create 2 letter folder inside “i18n” (18 stands for the number of letters between the first i and last n in internationalization) in root folder. • Create Locale folder in it • In that Locale folder just keep strings.xml http://bit.ly/TiLang
  • 30. Our App in different languages • strings.xml http://bit.ly/TiLang
  • 32. Applying Styles using JSS • Just like CSS, we can use this JSS to bring rich user interface to apply styles to elements. • Yes, here also we can create “Class” and “ID”. Just like .classname or #Idname • How to include JSS in our view? – Just retain same name for the .JSS file – For Example :- ui.js and the JSS file ui.jss
  • 33. CSS and JSS #idName #idname { { color:#f00; color:#f00; height:100px; height:100; width:100px; width:100; } text:”This is my CSS Text”; } .className .className { { backgroundColor:#fff; backgroundColor:#fff; } }
  • 34. Let’s apply style JSS {DEMO:’NOW’}
  • 35. Cloud Service • Create a server backed for your app instantly • Launch and scale your app automatically • No server coding or administration required • Reduced Cost
  • 36. Cloud Service (cont) • Standard(Tier 1) – Users – Key Values – Photos – Custom objects – Email Templates – Push notifications • Advanced(Tier 2) – Chat – Check-ins – Social integration – Photo Collections – Clients – Places – Status – Ratings, Reviews & Likes – Posts http://bit.ly/TiCloud http://bit.ly/TiCloudBook
  • 37. Cloud Service (cont) http://bit.ly/TiCloud http://bit.ly/TiCloudBook
  • 38. Cloud Service (cont) http://bit.ly/TiCloud http://bit.ly/TiCloudBook
  • 39. Cloud Service (cont) http://bit.ly/TiCloud http://bit.ly/TiCloudBook
  • 40. Cloud Service (cont) http://bit.ly/TiCloud http://bit.ly/TiCloudBook
  • 41. Cloud Service (cont) https://api.cloud.appcelerator.com/v1/users/create.json?key=[Key Value] http://bit.ly/TiCloud http://bit.ly/TiCloudBook
  • 42. Extend Ti API • We can also create a Module atop Titanium using native code (Objective C or Java) • We can get more Free/$ modules from the marketplace • You can also contribute! http://bit.ly/TiMarket
  • 44. Macro • Ti for Titanium • L for Titanium.Locale.getString • alert for Titanium.UI.createAlertDialog • And also remember about Code snippets – For e.g. :- button then {ctrl + space} and see the magic..
  • 45. Few more code snippets File system
  • 46. Few more code snippets (cont)…
  • 47. Few more code snippets (cont)… iOS Android
  • 48. To know more…. http://bit.ly/TiMyPage http://bit.ly/TiVimeo http://bit.ly/TiCloud http://bit.ly/TiTutorial http://bit.ly/TiLearning http://bit.ly/Ti7Days
  • 49. To know more (code github)…. • https://github.com/appcelerator • https://github.com/appcelerator-developer- relations • https://github.com/BradBroulik/titanium-mvc • https://github.com/tanin47/silver • https://github.com/railskarthi/acs_custom_objec t_query • https://github.com/railskarthi/acs_android_push • https://github.com/guilhermechapiewski/titaniu m-jasmine/

Editor's Notes

  1. Morning Friends…I am Naga Harish, work for Anubavam and I am Appcelerator Titanium certified developer.
  2. Here I want to say few words about Studio, it is powerful Eclipse-based IDE. Where you can Develop (Advanced code assisting), We can Test mobile apps in the simulator or on device and deploy all from within the (Development Environment)Titanium Studio.
  3. We need to take screen shot from Mac
  4. Create App to Say Hello to Users… and Then Add Text Box to get input from users say Techies……
  5. Connect to Techday7 twitter.. To get Updates…
  6. Connect to Techday7 twitter.. To get Updates…
  7. Look at TODO app
  8. ISO 639-1