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

What's hot (20)

PPTX
Building Mobile Web Apps using ASP.NET MVC, HTML5, & jQuery Mobile
Jon Cortez
 
PPT
Usability In Mobile Applications
Bruno Figueiredo
 
PDF
Making mobile apps with web technology (revised)
Manyoung Cho
 
PPTX
Building solutions on the Microsoft platform that target iPhone, iPad, and An...
Simon Guest
 
PDF
HTML 5 Development for Windows Phone and Desktop
Doris Chen
 
PPTX
Mobile Apps Develpment - A Comparison
Lataant Software Technologies
 
PPTX
Nashua Cloud .NET User Group - Basic WP8 App Dev With XAML and C#, April 2013
John Garland
 
PPTX
Mobile Application Development: Hybrid, Native and Mobile Web Apps
Paul Sons
 
PDF
webinos and Open Ecosystems Open Governance
webinos project
 
PDF
Mobilefirst - Build Enterprise Class Apps for Mobile First
Sanjeev Kumar
 
PPTX
Rich Internet Applications (RIA)
guest3214e8
 
PPTX
Introduction to j query mobile framework
Shreerang Patwardhan
 
PDF
HTML5 Can't Do That
Nathan Smith
 
PDF
[2015/2016] Mobile thinking
Ivano Malavolta
 
PDF
BEF2013 - Toronto - Dev Track 2 - Migrating Apps to BlackBerry 10
psiborg
 
PDF
Hybrid mobile apps
Erik Paulsson
 
PDF
Mobile applications chapter 2
Akib B. Momin
 
PPT
Silver Light for every one by Subodh
Subodh Pushpak
 
PPTX
Windows Phone 7.5 Mango - What's New
Sascha Corti
 
PDF
Widgetization: A New Paradigm
Harbinger Systems - HRTech Builder of Choice
 
Building Mobile Web Apps using ASP.NET MVC, HTML5, & jQuery Mobile
Jon Cortez
 
Usability In Mobile Applications
Bruno Figueiredo
 
Making mobile apps with web technology (revised)
Manyoung Cho
 
Building solutions on the Microsoft platform that target iPhone, iPad, and An...
Simon Guest
 
HTML 5 Development for Windows Phone and Desktop
Doris Chen
 
Mobile Apps Develpment - A Comparison
Lataant Software Technologies
 
Nashua Cloud .NET User Group - Basic WP8 App Dev With XAML and C#, April 2013
John Garland
 
Mobile Application Development: Hybrid, Native and Mobile Web Apps
Paul Sons
 
webinos and Open Ecosystems Open Governance
webinos project
 
Mobilefirst - Build Enterprise Class Apps for Mobile First
Sanjeev Kumar
 
Rich Internet Applications (RIA)
guest3214e8
 
Introduction to j query mobile framework
Shreerang Patwardhan
 
HTML5 Can't Do That
Nathan Smith
 
[2015/2016] Mobile thinking
Ivano Malavolta
 
BEF2013 - Toronto - Dev Track 2 - Migrating Apps to BlackBerry 10
psiborg
 
Hybrid mobile apps
Erik Paulsson
 
Mobile applications chapter 2
Akib B. Momin
 
Silver Light for every one by Subodh
Subodh Pushpak
 
Windows Phone 7.5 Mango - What's New
Sascha Corti
 
Widgetization: A New Paradigm
Harbinger Systems - HRTech Builder of Choice
 

Similar to Cross Platform Mobile Developmemnt (20)

PDF
Mobile fragmentation, fact or myth?
Belen Barros Pena
 
PDF
Mobile stategy
Burhan Surti
 
PDF
Hybrid Mobile Application Framework
동수 장
 
PDF
iEnterprise - Mit HTML-5 zum Unternehmens-Dashboard für Tablets
Indiginox
 
PDF
iEnterprise - Mit HTML5 zum Unternehmens-Dashboard für Tablets
Stefan Kolb
 
PDF
Cross platform solutions for Mobile App Development
USAID CEED II Project Moldova
 
PPTX
Magic xpa total mobility experience
Magic Software Brasil
 
PDF
Building & Managing The Lifecycle of Mobile Apps For The Enterprise
Apperian
 
PDF
Introduction To App-Splash
Omar LDeeb
 
PDF
Camerjam mobile marketing masterclass 12snap
James Cameron
 
PDF
PhoneGap Day - IBM, PhoneGap and the Enterprise
Bryce Curtis
 
PDF
How to pick the right development model for your mobile project?
Conny Svensson
 
PPTX
Managing the Android Supply Chain and the Role of SPDX
Black Duck by Synopsys
 
PPTX
Magic mobile webinar_Jan2013
Magic Software
 
PDF
Fragmentation in mobile design: fact or fiction
Belen Barros Pena
 
PPT
Mobile Bootcamp Presentation: Mobile Application Development Platforms
Wilfred Mutua Mworia
 
PDF
WebSphere as a platform for mobile apps
IBM Danmark
 
PPTX
Rapid Prototyping with Cordova aka Phonegap
Josue Bustos
 
PPTX
Bam amor mobile development tools
Bam Amor
 
PPTX
Pick Your Poison – Mobile Web, Native, or Hybrid? - Denver Startup Week - Oct...
Shane Church
 
Mobile fragmentation, fact or myth?
Belen Barros Pena
 
Mobile stategy
Burhan Surti
 
Hybrid Mobile Application Framework
동수 장
 
iEnterprise - Mit HTML-5 zum Unternehmens-Dashboard für Tablets
Indiginox
 
iEnterprise - Mit HTML5 zum Unternehmens-Dashboard für Tablets
Stefan Kolb
 
Cross platform solutions for Mobile App Development
USAID CEED II Project Moldova
 
Magic xpa total mobility experience
Magic Software Brasil
 
Building & Managing The Lifecycle of Mobile Apps For The Enterprise
Apperian
 
Introduction To App-Splash
Omar LDeeb
 
Camerjam mobile marketing masterclass 12snap
James Cameron
 
PhoneGap Day - IBM, PhoneGap and the Enterprise
Bryce Curtis
 
How to pick the right development model for your mobile project?
Conny Svensson
 
Managing the Android Supply Chain and the Role of SPDX
Black Duck by Synopsys
 
Magic mobile webinar_Jan2013
Magic Software
 
Fragmentation in mobile design: fact or fiction
Belen Barros Pena
 
Mobile Bootcamp Presentation: Mobile Application Development Platforms
Wilfred Mutua Mworia
 
WebSphere as a platform for mobile apps
IBM Danmark
 
Rapid Prototyping with Cordova aka Phonegap
Josue Bustos
 
Bam amor mobile development tools
Bam Amor
 
Pick Your Poison – Mobile Web, Native, or Hybrid? - Denver Startup Week - Oct...
Shane Church
 
Ad

Recently uploaded (20)

PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
PDF
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Ad

Cross Platform Mobile Developmemnt

  • 1. Cross-Platform Mobile Development Write Once.. Run Everywhere.. Any device..
  • 2. Soutom Dhara [email protected] 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 } };