SlideShare a Scribd company logo
Cross-Platform Mobile
               Development
Write Once..

   Run Everywhere..

       Any device..
Soutom Dhara


    Soutomd@mindfiresolutions.com



    Soutom.dhara


    @soutom


    Soutom.wordpress.com
Cell phone usages is ubiquitous
Growth of the mobile web
120




100




80
                                                                                                                  52%

60                                                                                                                              "Desktop"
                                                                            32%                                                 "Mobile"


40                                          12%
                     3%
20




 0
           2009-04             2009-12               2010-08              2011-04               2011-12               2012-08
 2008-12             2009-08              2010-04               2010-12              2011-08                2012-04



                           Source : http://gs.statcounter.com/#mobile_vs_desktop-IN-monthly-200812-201208
I want a Mobile App
Growth of Top 5 mobile operating system
45



40



35



30

                                                                                                                        "SymbianOS"
                                                                                                                        "iOS"
25
                                                                                                                        "Android"
                                                                                                                        "BlackBerry OS"
                                                                                                                        "Samsung"
20



15



10



5



 0
2008-12   2009-04   2009-08   2009-12   2010-04   2010-08   2010-12   2011-04   2011-08   2011-12   2012-04   2012-06



                              http://gs.statcounter.com/#mobile_os-ww-monthly-200812-201206
Mobile Platforms
Mobile Platforms
                Operating    2011 Market 2015 Market
                System       Share       Share
                Android            38.9%       43.8%
                BlackBerry         14.2%       13.4%
                iOS                18.2%       16.9%

                WP7 / WM            3.8%       20.3%
2015            Other              24.9%        5.6%
        2011    Total               100%        100%



2011
                iOS
                Android
       2015
                BlackBerry
                WP
                Other
The Native Experience



IDE         Emulator   Store   Consumer




IDE         Emulator   Store   Consumer




IDE        Simulator   Store   Consumer
The Native Experience
Native App


                                            Web Server

                                                   Ruby/
                                                    java
    Native          Http Request
     App                                                               External
                                                                        Web
                                                                       Service



                                        Files
                                      Images and       Database
                                         other


          Device                                           Backend       3rd Party

Execute UI & some                  Execute central Application logic
application logic
Demo
Native App : Advantages & disadvantages
Production
     Learning Curve     : Easy, Great Number of Tutorials + Libraries
     Tools              : Great IDE with good debugging supports
     Monetization       : Direct access to market place / app store

Usage Scenario
      Data Driven App
      Rich Media

User Experience
      Hardware           : Direct Access to all Sensor / APIs
      User Interface
      Offline Capability : Available( SQL database / Flat File)
Platform
       IOS                   Windows Phone 7.x
       Android               Others...

Cost for cross – platform : Vendor Lock-in, device specific optimization
The Native Experience
Multi-plarform Apps


●
    Is this only for rich guys

●
    Time to complete a app
5 Approaches
 ●
   Mobile Web
 ●
   Client Side Web
 ●
   Hybrid App
 ●
   Interpreted App
 ●
   Cross Compiling
The Mobile Web
Server-Side Web


                                              Web Server

                                                    Ruby/
                                                     java
   Web            Http Request
  Browser                                                                  External
                                                                            Web
                                                                           Service



                                         Files
                                       Images and
                                          other         Database


         Device                                             Backend          3rd Party

Executes UI & some               Executes UI & central Application logic
Client side logic
Frameworks / Toolkits




                        Zurb Foundation
             http://foundation.zurb.com/




                     Twitter Bootstrap
          http://twitter.github.com/bootstrap/
Demo
Mobile Web : Advantages & disadvantages
Production
     Learning Curve    : Easy, Great Number of Tutorials + Libraries .
     Tools             : Use any editor of your choice.
     Monetization      : No App Store destribution.

Usage Scenario
      Data Driven App
      Rich Media      : Inferior Performance
User Experience
      Hardware           : Limited access of H/W features & APIs
      User Interface     : Fancy UI possible, but platform specific style required
      Offline Capability : Available( SQL database / Flat File)
Platform
       iOS                    Windows Phone 7.x (Mango)
       Android                Others (Responsive Design)

Cost for cross – platform : Low, plain HTML run on any type of browser
Client-Side Web
Client-Side Web


  Web Browser                                Web Server

   JavaScript                                      Ruby/
                        Http                        java
                        Request                                      External
                                                                      Web
                                                                     Service
 Files
Images and
Images and
   other
   other     Database
                                        Files
                                      Images and
                                         other         Database


              Device                                       Backend     3rd Party


 Executes UI & some               Only central Application logic
 Application logic
Framework / toolkits
Demo
Client-Side Web : Advantages & disadvantages
Production
     Learning Curve    : Easy, Great Number of Tutorials + Libraries .
     Tools             : Use any editor of your choice.
     Monetization      : No App Store distribution

Usage Scenario
      Data Driven App
      Rich Media      : Inferior Performance

User Experience
      Hardware           : Limited access of H/W features & APIs
      User Interface     : Mostly iOS like UI library
      Offline Capability : HTML 5, Otherwise Limited
Platform
      iOS                    Windows Phone 7.x (Mango)
      Android                Others (Responsive Design)

Cost for cross – platform : Low, plain HTML run on any type of browser
Hybrid Apps
Hybrid Apps


  Native App
                                                  Web Server
Native Code
                                                        Ruby/             http://
                         http://                         java
                                                                                    External
  Interpreter                                                                        Web
                                                                                    Service

                             http://
 Bridge
                                             Files
 JavaScript                                Images and
                                              other         Database


                Device                                          Backend               3rd Party


Executes UI & some                     Only central Application logic
Application logic
Framework / toolkits
Demo
Hybrid Apps : Advantages & disadvantages
Production
     Learning Curve    : Easy, Great Number of Tutorials + Libraries .
     Tools             : Use any editor of your choice / commercial tools.
     Monetization      : App Store distribution

Usage Scenario
     Data Driven App
     Rich Media      : Inferior Performance

User Experience
      Hardware           : Access to most H/W features & many API available
      User Interface     : Huge effort required to match native UI
      Offline Capability :
Platform
      iOS                   Windows Phone 7.x (Mango)
      Android               Others (Responsive Design)

Cost for cross – platform
Interpreted Apps
Interpreted Apps

      Native App
                       Native APIs


                                        http://           Web Server
      API
      API     API
              API     API
                      API        API
                                 API
                                                                Ruby/
                                                                 java

            Abstraction Layer
            Abstraction Layer          http://




              Interpreter                            Files
                                                   Images and
                                                      other         Database

                      Database
                      Database
        Application
        Application                                                     Backend
          Script
          Script
                         Files
                         Files

                            Device

Executes UI & some Client side logic              Only central Application logic
Framework / toolkits
Demo
Interpreted Apps : Advantages & disadvantages
Production
     Learning Curve    : Specific API, Great Number of Tutorials + Libraries .
     Tools             : IDEs, including debugger
     Monetization      : App Store distribution

Usage Scenario
     Data Driven App

User Experience
     Hardware           : Access to H/W & API available, wrapped with specific API
     User Interface     : truly native widgets
     Offline Capability

Platform
           IOS              Windows Phone 7.x
           Android          Others

Cost for cross – platform
Cross Compiling




Image found at : http://www.flickr.com/photos/danholton/2853935782/sizes/m/in/photostream/
Cross Compiling (Mono)


                                         Native
   UI              MonoTouch(iOS)
 (iOS)
                                          App
 (iOS)
                                               iOS
                    MonoDroid
   UI                  (Android)
(Android)
(Android)                                Native
                        Mono compiler     App
   UI
 (wp7)
 (wp7)                                      Android


 Core                 .NET RT            Native
                        (WP7)
(shared)
(shared)                                  App
            C#           MSIL compiler        WP7     Backend
Framework / toolkits
Cross Compiled Apps : Advantages & disadvantages
  Production
       Learning Curve    : New tool chain (take getting used to)
       Tools             : IDEs, but debugging in target environment.
       Monetization      : App Store distribution

  Usage Scenario
       Data Driven App
       Rich Media      : No partial supports

  User Experience
        Hardware           : Access to H/W & API available, wrapped with specific API
        User Interface     : Truly native widgets.
        Offline Capability :
   Platform
        iOS                    Windows Phone 7.x (Mango)
        Android                Others (Responsive Design)

  Cost for cross – platform
Production             Native   Web   Client-Side   Hybrid   Interpreted    Cross
                                          web                              Compiled
   Learning Curve

              Tools
  Monetization

Usages
Scenario
  Data-driven App
  Rich Media

           User
     Experience
  Hardware
  User Interface
  Offline capability

Platforms
   iOS
   Android
   WP7
   Others
Cost for cross
platform
Questions
Cross Platform Mobile Developmemnt
Advantages...
Need to Know: Javascript , HTML, CSS,
              Ruby/ Python / PHP
                                     Supported OS for Mobile Apps


Supported OS for Desktop Apps


                                                  Native
                                                   UI
                            Open Source

     Full Access : camera, gps, local file system, phone book, more ….
Your Application                                          Your Application
                           Optional                                                  Optional
UI API      Phone API                                     UI API      Phone API
                           Module                                                    Module

 Javascript – Objective C Bridge                               Javascript – Java Bridge

           iPhone OS                                                 Android OS
         Native iPhone APP                                     Native Android APP


                           Your Application

                  UI API      Phone API
                                             Optional                 Desktop supports
                                             Module
                                                                      Ruby , php, Python
                Javascript – Ruby - Python Bridge to OS
                                                                      and Javascript
                  Windows OS – Mac OS – Linux OS
var root = Titanium.Filesystem.resourcesDirectory;

var win = Titanium.UI.createWindow({
orientationModes : [Ti.UI.PORTRAIT],
backgroundImage : root + 'images/background.png'
});
var loginBtn = Ti.UI.createButton();

loginBtn.addEventListener('click',function() {
   var homeWin = require('../pages/home').getHomeWin;
   var homePage = new homeWin();
   homePage.open();
   win.close();
});

win.add(loginBtn);
var xhr = Titanium.Network.createHTTPClient();
   xhr.onerror = function(e) {
      // Do some thing to notify the user
   };
xhr.open("POST", "http://abcd.com/users/login");
xhr.setRequestHeader("content-type","application/json");
var param = {
     "user_name" : "soutom",
     "password" : "mindfire",
     };
xhr.send(JSON.stringify(param));
xhr.onload = function() {
     if (this.status == '200') {
         // Success Block
     }else{
         // Error Block
     }
};
Questions
Thank You
Cross Platform Mobile Developmemnt

More Related Content

KEY
HTML5 로 iPhone App 만들기
PPTX
Javascript frameworks
PDF
Poly Source It Profile
PDF
Polysource It Profile
PDF
Polysource-IT Profile
PPT
European SharePoint Conference: Mobile Applications for SharePoint using HTML5
PDF
uMobile: Jasig-Sakai 2012
PPTX
Sharepoint mobile
HTML5 로 iPhone App 만들기
Javascript frameworks
Poly Source It Profile
Polysource It Profile
Polysource-IT Profile
European SharePoint Conference: Mobile Applications for SharePoint using HTML5
uMobile: Jasig-Sakai 2012
Sharepoint mobile

What's hot (20)

PPTX
Building Mobile Web Apps using ASP.NET MVC, HTML5, & jQuery Mobile
PPT
Usability In Mobile Applications
PDF
Making mobile apps with web technology (revised)
PPTX
Building solutions on the Microsoft platform that target iPhone, iPad, and An...
PDF
HTML 5 Development for Windows Phone and Desktop
PPTX
Mobile Apps Develpment - A Comparison
PPTX
Nashua Cloud .NET User Group - Basic WP8 App Dev With XAML and C#, April 2013
PPTX
Mobile Application Development: Hybrid, Native and Mobile Web Apps
PDF
webinos and Open Ecosystems Open Governance
PDF
Mobilefirst - Build Enterprise Class Apps for Mobile First
PPTX
Rich Internet Applications (RIA)
PPTX
Introduction to j query mobile framework
PDF
HTML5 Can't Do That
PDF
[2015/2016] Mobile thinking
PDF
BEF2013 - Toronto - Dev Track 2 - Migrating Apps to BlackBerry 10
PDF
Hybrid mobile apps
PDF
Mobile applications chapter 2
PPT
Silver Light for every one by Subodh
PPTX
Windows Phone 7.5 Mango - What's New
PDF
Widgetization: A New Paradigm
Building Mobile Web Apps using ASP.NET MVC, HTML5, & jQuery Mobile
Usability In Mobile Applications
Making mobile apps with web technology (revised)
Building solutions on the Microsoft platform that target iPhone, iPad, and An...
HTML 5 Development for Windows Phone and Desktop
Mobile Apps Develpment - A Comparison
Nashua Cloud .NET User Group - Basic WP8 App Dev With XAML and C#, April 2013
Mobile Application Development: Hybrid, Native and Mobile Web Apps
webinos and Open Ecosystems Open Governance
Mobilefirst - Build Enterprise Class Apps for Mobile First
Rich Internet Applications (RIA)
Introduction to j query mobile framework
HTML5 Can't Do That
[2015/2016] Mobile thinking
BEF2013 - Toronto - Dev Track 2 - Migrating Apps to BlackBerry 10
Hybrid mobile apps
Mobile applications chapter 2
Silver Light for every one by Subodh
Windows Phone 7.5 Mango - What's New
Widgetization: A New Paradigm
Ad

Similar to Cross Platform Mobile Developmemnt (20)

PDF
Mobile fragmentation, fact or myth?
PDF
Mobile stategy
PDF
Hybrid Mobile Application Framework
PDF
iEnterprise - Mit HTML-5 zum Unternehmens-Dashboard für Tablets
PDF
iEnterprise - Mit HTML5 zum Unternehmens-Dashboard für Tablets
PDF
Cross platform solutions for Mobile App Development
PPTX
Magic xpa total mobility experience
PDF
Building & Managing The Lifecycle of Mobile Apps For The Enterprise
PDF
Introduction To App-Splash
PDF
Camerjam mobile marketing masterclass 12snap
PDF
PhoneGap Day - IBM, PhoneGap and the Enterprise
PDF
How to pick the right development model for your mobile project?
PPTX
Managing the Android Supply Chain and the Role of SPDX
PPTX
Magic mobile webinar_Jan2013
PDF
Fragmentation in mobile design: fact or fiction
PPT
Mobile Bootcamp Presentation: Mobile Application Development Platforms
PDF
WebSphere as a platform for mobile apps
PPTX
Rapid Prototyping with Cordova aka Phonegap
PPTX
Bam amor mobile development tools
PPTX
Pick Your Poison – Mobile Web, Native, or Hybrid? - Denver Startup Week - Oct...
Mobile fragmentation, fact or myth?
Mobile stategy
Hybrid Mobile Application Framework
iEnterprise - Mit HTML-5 zum Unternehmens-Dashboard für Tablets
iEnterprise - Mit HTML5 zum Unternehmens-Dashboard für Tablets
Cross platform solutions for Mobile App Development
Magic xpa total mobility experience
Building & Managing The Lifecycle of Mobile Apps For The Enterprise
Introduction To App-Splash
Camerjam mobile marketing masterclass 12snap
PhoneGap Day - IBM, PhoneGap and the Enterprise
How to pick the right development model for your mobile project?
Managing the Android Supply Chain and the Role of SPDX
Magic mobile webinar_Jan2013
Fragmentation in mobile design: fact or fiction
Mobile Bootcamp Presentation: Mobile Application Development Platforms
WebSphere as a platform for mobile apps
Rapid Prototyping with Cordova aka Phonegap
Bam amor mobile development tools
Pick Your Poison – Mobile Web, Native, or Hybrid? - Denver Startup Week - Oct...
Ad

Recently uploaded (20)

PDF
Electronic commerce courselecture one. Pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PPTX
Big Data Technologies - Introduction.pptx
PPT
Teaching material agriculture food technology
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Modernizing your data center with Dell and AMD
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
cuic standard and advanced reporting.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Approach and Philosophy of On baking technology
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Spectral efficient network and resource selection model in 5G networks
Electronic commerce courselecture one. Pdf
Building Integrated photovoltaic BIPV_UPV.pdf
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Big Data Technologies - Introduction.pptx
Teaching material agriculture food technology
The Rise and Fall of 3GPP – Time for a Sabbatical?
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Chapter 3 Spatial Domain Image Processing.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Modernizing your data center with Dell and AMD
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
cuic standard and advanced reporting.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Network Security Unit 5.pdf for BCA BBA.
Approach and Philosophy of On baking technology
Per capita expenditure prediction using model stacking based on satellite ima...
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Spectral efficient network and resource selection model in 5G networks

Cross Platform Mobile Developmemnt

  • 1. Cross-Platform Mobile Development Write Once.. Run Everywhere.. Any device..
  • 2. Soutom Dhara Soutomd@mindfiresolutions.com Soutom.dhara @soutom Soutom.wordpress.com
  • 3. Cell phone usages is ubiquitous
  • 4. Growth of the mobile web 120 100 80 52% 60 "Desktop" 32% "Mobile" 40 12% 3% 20 0 2009-04 2009-12 2010-08 2011-04 2011-12 2012-08 2008-12 2009-08 2010-04 2010-12 2011-08 2012-04 Source : http://gs.statcounter.com/#mobile_vs_desktop-IN-monthly-200812-201208
  • 5. I want a Mobile App
  • 6. Growth of Top 5 mobile operating system 45 40 35 30 "SymbianOS" "iOS" 25 "Android" "BlackBerry OS" "Samsung" 20 15 10 5 0 2008-12 2009-04 2009-08 2009-12 2010-04 2010-08 2010-12 2011-04 2011-08 2011-12 2012-04 2012-06 http://gs.statcounter.com/#mobile_os-ww-monthly-200812-201206
  • 8. Mobile Platforms Operating 2011 Market 2015 Market System Share Share Android 38.9% 43.8% BlackBerry 14.2% 13.4% iOS 18.2% 16.9% WP7 / WM 3.8% 20.3% 2015 Other 24.9% 5.6% 2011 Total 100% 100% 2011 iOS Android 2015 BlackBerry WP Other
  • 9. The Native Experience IDE Emulator Store Consumer IDE Emulator Store Consumer IDE Simulator Store Consumer
  • 11. Native App Web Server Ruby/ java Native Http Request App External Web Service Files Images and Database other Device Backend 3rd Party Execute UI & some Execute central Application logic application logic
  • 12. Demo
  • 13. Native App : Advantages & disadvantages Production Learning Curve : Easy, Great Number of Tutorials + Libraries Tools : Great IDE with good debugging supports Monetization : Direct access to market place / app store Usage Scenario Data Driven App Rich Media User Experience Hardware : Direct Access to all Sensor / APIs User Interface Offline Capability : Available( SQL database / Flat File) Platform IOS Windows Phone 7.x Android Others... Cost for cross – platform : Vendor Lock-in, device specific optimization
  • 15. Multi-plarform Apps ● Is this only for rich guys ● Time to complete a app
  • 16. 5 Approaches ● Mobile Web ● Client Side Web ● Hybrid App ● Interpreted App ● Cross Compiling
  • 18. Server-Side Web Web Server Ruby/ java Web Http Request Browser External Web Service Files Images and other Database Device Backend 3rd Party Executes UI & some Executes UI & central Application logic Client side logic
  • 19. Frameworks / Toolkits Zurb Foundation http://foundation.zurb.com/ Twitter Bootstrap http://twitter.github.com/bootstrap/
  • 20. Demo
  • 21. Mobile Web : Advantages & disadvantages Production Learning Curve : Easy, Great Number of Tutorials + Libraries . Tools : Use any editor of your choice. Monetization : No App Store destribution. Usage Scenario Data Driven App Rich Media : Inferior Performance User Experience Hardware : Limited access of H/W features & APIs User Interface : Fancy UI possible, but platform specific style required Offline Capability : Available( SQL database / Flat File) Platform iOS Windows Phone 7.x (Mango) Android Others (Responsive Design) Cost for cross – platform : Low, plain HTML run on any type of browser
  • 23. Client-Side Web Web Browser Web Server JavaScript Ruby/ Http java Request External Web Service Files Images and Images and other other Database Files Images and other Database Device Backend 3rd Party Executes UI & some Only central Application logic Application logic
  • 25. Demo
  • 26. Client-Side Web : Advantages & disadvantages Production Learning Curve : Easy, Great Number of Tutorials + Libraries . Tools : Use any editor of your choice. Monetization : No App Store distribution Usage Scenario Data Driven App Rich Media : Inferior Performance User Experience Hardware : Limited access of H/W features & APIs User Interface : Mostly iOS like UI library Offline Capability : HTML 5, Otherwise Limited Platform iOS Windows Phone 7.x (Mango) Android Others (Responsive Design) Cost for cross – platform : Low, plain HTML run on any type of browser
  • 28. Hybrid Apps Native App Web Server Native Code Ruby/ http:// http:// java External Interpreter Web Service http:// Bridge Files JavaScript Images and other Database Device Backend 3rd Party Executes UI & some Only central Application logic Application logic
  • 30. Demo
  • 31. Hybrid Apps : Advantages & disadvantages Production Learning Curve : Easy, Great Number of Tutorials + Libraries . Tools : Use any editor of your choice / commercial tools. Monetization : App Store distribution Usage Scenario Data Driven App Rich Media : Inferior Performance User Experience Hardware : Access to most H/W features & many API available User Interface : Huge effort required to match native UI Offline Capability : Platform iOS Windows Phone 7.x (Mango) Android Others (Responsive Design) Cost for cross – platform
  • 33. Interpreted Apps Native App Native APIs http:// Web Server API API API API API API API API Ruby/ java Abstraction Layer Abstraction Layer http:// Interpreter Files Images and other Database Database Database Application Application Backend Script Script Files Files Device Executes UI & some Client side logic Only central Application logic
  • 35. Demo
  • 36. Interpreted Apps : Advantages & disadvantages Production Learning Curve : Specific API, Great Number of Tutorials + Libraries . Tools : IDEs, including debugger Monetization : App Store distribution Usage Scenario Data Driven App User Experience Hardware : Access to H/W & API available, wrapped with specific API User Interface : truly native widgets Offline Capability Platform IOS Windows Phone 7.x Android Others Cost for cross – platform
  • 37. Cross Compiling Image found at : http://www.flickr.com/photos/danholton/2853935782/sizes/m/in/photostream/
  • 38. Cross Compiling (Mono) Native UI MonoTouch(iOS) (iOS) App (iOS) iOS MonoDroid UI (Android) (Android) (Android) Native Mono compiler App UI (wp7) (wp7) Android Core .NET RT Native (WP7) (shared) (shared) App C# MSIL compiler WP7 Backend
  • 40. Cross Compiled Apps : Advantages & disadvantages Production Learning Curve : New tool chain (take getting used to) Tools : IDEs, but debugging in target environment. Monetization : App Store distribution Usage Scenario Data Driven App Rich Media : No partial supports User Experience Hardware : Access to H/W & API available, wrapped with specific API User Interface : Truly native widgets. Offline Capability : Platform iOS Windows Phone 7.x (Mango) Android Others (Responsive Design) Cost for cross – platform
  • 41. Production Native Web Client-Side Hybrid Interpreted Cross web Compiled Learning Curve Tools Monetization Usages Scenario Data-driven App Rich Media User Experience Hardware User Interface Offline capability Platforms iOS Android WP7 Others Cost for cross platform
  • 44. Advantages... Need to Know: Javascript , HTML, CSS, Ruby/ Python / PHP Supported OS for Mobile Apps Supported OS for Desktop Apps Native UI Open Source Full Access : camera, gps, local file system, phone book, more ….
  • 45. Your Application Your Application Optional Optional UI API Phone API UI API Phone API Module Module Javascript – Objective C Bridge Javascript – Java Bridge iPhone OS Android OS Native iPhone APP Native Android APP Your Application UI API Phone API Optional Desktop supports Module Ruby , php, Python Javascript – Ruby - Python Bridge to OS and Javascript Windows OS – Mac OS – Linux OS
  • 46. var root = Titanium.Filesystem.resourcesDirectory; var win = Titanium.UI.createWindow({ orientationModes : [Ti.UI.PORTRAIT], backgroundImage : root + 'images/background.png' }); var loginBtn = Ti.UI.createButton(); loginBtn.addEventListener('click',function() { var homeWin = require('../pages/home').getHomeWin; var homePage = new homeWin(); homePage.open(); win.close(); }); win.add(loginBtn);
  • 47. var xhr = Titanium.Network.createHTTPClient(); xhr.onerror = function(e) { // Do some thing to notify the user }; xhr.open("POST", "http://abcd.com/users/login"); xhr.setRequestHeader("content-type","application/json"); var param = { "user_name" : "soutom", "password" : "mindfire", }; xhr.send(JSON.stringify(param)); xhr.onload = function() { if (this.status == '200') { // Success Block }else{ // Error Block } };