SlideShare uma empresa Scribd logo
1 de 54
Baixar para ler offline
Cross-Plattform Mobile Development

Sencha Touch & PhoneGap

                                      MobileTechCon 2011
                             14/Sep/2011 - Mainz, Germany

                                               Stefan Kolb
                                         Indiginox GmbH
Me, Myself & I
                    @stefan_kolb Social Media, baby!
                    stefankolb.de My blog is my castle

Hier macht‘s Spaß :-)




                                             Softwareentwickler
Sencha Touch




       https://lh5.googleusercontent.com/-MJUrGT-iyqQ/TYind_vJ7BI/AAAAAAAAKPM/lw7NADI2qgg/Japanese_Sencha_9_Tea.JPG
“   The first HTML5, Mobile
     Web App Framework

              http://www.sencha.com/products/touch




              http://fc04.deviantart.net/fs50/f/2009/333/1/7/Blue_Bubbles_Wallpaper_by_SonnyKingBlack.jpg
jQuery

              jQuery Wrapper
               DOM Element
<HTML>         DOM Element    append();
  DOM          DOM Element removeClass();
                     ...     position();


   $(‘#selector‘);
Sencha Touch

           Sencha Touch Widgets
                     List
<HTML>             Button
  DOM              Toolbar
                      ...

new Ext.List({ ... });
Sencha Touch


• HTML5, CSS3, JavaScript
• Basiert auf Ext JS (Platform)
• Cross-Platform
http://www.sencha.com/img/20110222-loopfuse.png
http://dev.sencha.com/deploy/touch/examples/kitchensink/
Sencha Touch
index.html
MVC
Model-View-Controller




                        http://rarewallpapers.com/_wallpapers/blueprint-1024x768.jpg
Managers


• Ext.regModel();
• Ext.regController();
• Ext.reg();
 • new Ext.###CLASS###({ });
Model erstellen
View erstellen
Controller erstellen
Funktionen
Data Package




    http://www.etleboro.com/picture_library/Server_room_4.jpg
& Sencha Touch




http://www.sencha.com/blog/countdown-to-ext-js-4-data-package/
Model


• Repräsentiert Daten
• Validierung von Daten
• Verbindung zu anderen Modellen
Store


• Sammlung von Model-Instanzen
• Datenmanagement für UI-
  Komponenten
Proxy

• Laden / Speichern von Model-Daten
• ClientProxy vs. ServerProxy
 • LocalStorageProxy, SessionStorageProxy,
   MemoryProxy
 • AjaxProxy, ScriptTagProxy

• CRUD / Operation-Objekt
Reader


• Parsen von (empfangenen) Daten
• ArrayReader, JsonReader, XmlReader
Writer


• Aufbereiten von Daten
• Speichern von Daten
• JsonWriter, XmlWriter
User Interface
                                                   Design




  http://culturedcode.com/things/iphone/makingof/ThingsTouch-InterfaceStillLife.jpg
Components


• Visuellen Bestanteile einer App
• User Interface
Demo
Components




             http://media.oregonlive.com/ent_impact_arts/photo/leventijpg-1275f1d04cd5ba33.jpg
Container

• Wrapper für andere Components
• Hinzufügen, Einfügen und Entfernen
  von Components
• Anordnung der beinhaltenden
  Components mittels Layout
Layout


• Legt fest, wie Components innerhalb
  eines Containers gerendert wrden
• auto, fit, card, hbox, vbox
 • dock, field, box
fit
card
hbox
vbox
Container/Layout
      Konfiguration

• pack: start, center, end, justify
• align: start, center, end, stretch
• direction: normal, reverse
• width, height, flex
Container/Layout
 Konfiguration
Touch
                                Events & Gestures


                 pinch/rotate   swipe



tap/double-tap                          tap & hold




                                         http://www.sencha.com/products/touch/
Demo
Touch Solitaire




                  http://media.oregonlive.com/ent_impact_arts/photo/leventijpg-1275f1d04cd5ba33.jpg
Style & Design

• CSS3
 • Unabhängig der Bildschirmauflösung

• Icons
• Animations
 • slide, pop, fade, flip & cube
 • Eigene Animationen mittels CSS
Demo
Styles & Design




                  http://media.oregonlive.com/ent_impact_arts/photo/leventijpg-1275f1d04cd5ba33.jpg
Theming




          http://www.sencha.com/products/touch/style-design
Lizenzen

• Open Source Licenses
 • GPL v3 & FLOSS

• Commercial Software License
• Commercial OEM License
Lizenzen

• Open Source Licenses
 • GPL v3 & FLOSS

• Commercial Software License
• Commercial OEM License
Offline         ScrollView       Android
HTML5
                  Charts
  Animations                  CSS3
                                           Maps
             Windows Phone
                                     Theming
Audio

 MVC                                       Video

BlackBerry                              History
               Ajax      Templates
    Forms
                        Layouts      Touch Events
                 iOS
Data Package
                       Animations
PhoneGap




           http://lh5.ggpht.com/-rmzR397-NWM/SJFLfL6_0OI/AAAAAAAAAB8/-yL_flScXAY/UTGC0101.jpg
Web-App
HTML5
   CSS             Native APIs
JavaScript
PhoneGap


• Native Bibliothek
• JavaScript
 • navigator.*
http://www.phonegap.com/about/features
http://docs.phonegap.com
deviceready?
PhoneGap Build

 build.phonegap.com
Demo
Sencha Touch & PhoneGap




                    http://media.oregonlive.com/ent_impact_arts/photo/leventijpg-1275f1d04cd5ba33.jpg
Fragen?
               Bitte nicht so schwierige :-)




       @stefan_kolb
stefan.kolb@indiginox.com
THX
I‘m up for beers




                   http://hi-zu-mi.deviantart.com/art/The-Legendary-152264959

Mais conteúdo relacionado

Destaque

Work Experience & Samples
Work Experience & SamplesWork Experience & Samples
Work Experience & SamplesAnita Suk
 
Global accessibility day untapped minority
Global accessibility day  untapped minorityGlobal accessibility day  untapped minority
Global accessibility day untapped minorityBarbara Starr
 
Karthika krishna ethical hacking slides
Karthika krishna ethical hacking slidesKarthika krishna ethical hacking slides
Karthika krishna ethical hacking slidesKarthika Krishna
 
Reduction of False Acceptance Rate Using Cross Validation for Fingerprint Rec...
Reduction of False Acceptance Rate Using Cross Validation for Fingerprint Rec...Reduction of False Acceptance Rate Using Cross Validation for Fingerprint Rec...
Reduction of False Acceptance Rate Using Cross Validation for Fingerprint Rec...IJTET Journal
 

Destaque (6)

Work Experience & Samples
Work Experience & SamplesWork Experience & Samples
Work Experience & Samples
 
Global accessibility day untapped minority
Global accessibility day  untapped minorityGlobal accessibility day  untapped minority
Global accessibility day untapped minority
 
Emma
EmmaEmma
Emma
 
Karthika krishna ethical hacking slides
Karthika krishna ethical hacking slidesKarthika krishna ethical hacking slides
Karthika krishna ethical hacking slides
 
Reduction of False Acceptance Rate Using Cross Validation for Fingerprint Rec...
Reduction of False Acceptance Rate Using Cross Validation for Fingerprint Rec...Reduction of False Acceptance Rate Using Cross Validation for Fingerprint Rec...
Reduction of False Acceptance Rate Using Cross Validation for Fingerprint Rec...
 
IRIS Scaner
 IRIS Scaner IRIS Scaner
IRIS Scaner
 

Semelhante a Sencha Touch und PhoneGap

Cross-Apps-Entwicklung für iPhone, Android und Co.
Cross-Apps-Entwicklung für iPhone, Android und Co.Cross-Apps-Entwicklung für iPhone, Android und Co.
Cross-Apps-Entwicklung für iPhone, Android und Co.Peter Hecker
 
Mobile Webentwicklung mit HTML5
Mobile Webentwicklung mit HTML5Mobile Webentwicklung mit HTML5
Mobile Webentwicklung mit HTML5kkramhoeft
 
Mit jQTouch auf's iPhone & Android
Mit jQTouch auf's iPhone & AndroidMit jQTouch auf's iPhone & Android
Mit jQTouch auf's iPhone & AndroidBjörn Wibben
 
Die Zukunft der Webstandards - Webinale 31.05.2010
Die Zukunft der Webstandards - Webinale 31.05.2010Die Zukunft der Webstandards - Webinale 31.05.2010
Die Zukunft der Webstandards - Webinale 31.05.2010Patrick Lauke
 
HTML5 Offline - Fallstricke für mobile Webseiten und WebApps
HTML5 Offline - Fallstricke für mobile Webseiten und WebAppsHTML5 Offline - Fallstricke für mobile Webseiten und WebApps
HTML5 Offline - Fallstricke für mobile Webseiten und WebAppsUlrich Schmidt
 
Webstandards auf dem Weg zu Standards im Mobilen Bereich
Webstandards auf dem Weg zu Standards im Mobilen BereichWebstandards auf dem Weg zu Standards im Mobilen Bereich
Webstandards auf dem Weg zu Standards im Mobilen BereichPeter Rozek
 
Echte Lösungen, keine Tricks
Echte Lösungen, keine TricksEchte Lösungen, keine Tricks
Echte Lösungen, keine TricksJens Grochtdreis
 
Top 10 Internet Trends 2006
Top 10 Internet Trends 2006Top 10 Internet Trends 2006
Top 10 Internet Trends 2006Jürg Stuker
 
2009 - DNC: Silverlight ohne UI - Nur als Cache
2009 - DNC: Silverlight ohne UI - Nur als Cache2009 - DNC: Silverlight ohne UI - Nur als Cache
2009 - DNC: Silverlight ohne UI - Nur als CacheDaniel Fisher
 
Erstellung von mobilen cross-platform-Apps
Erstellung von mobilen cross-platform-AppsErstellung von mobilen cross-platform-Apps
Erstellung von mobilen cross-platform-AppsRalf Lütke
 
Creasoft-Akademie - Mobile Multiplattform Apps
Creasoft-Akademie - Mobile Multiplattform AppsCreasoft-Akademie - Mobile Multiplattform Apps
Creasoft-Akademie - Mobile Multiplattform AppsCreasoft AG
 
SharePoint, HTML5 und mobile Geräte (SharePoint UserGroup Dresden 11/2011)
SharePoint, HTML5 und mobile Geräte (SharePoint UserGroup Dresden 11/2011)SharePoint, HTML5 und mobile Geräte (SharePoint UserGroup Dresden 11/2011)
SharePoint, HTML5 und mobile Geräte (SharePoint UserGroup Dresden 11/2011)Christian Heindel
 
German: Softwareprodukte aus einem Source Code mit Javascript
German: Softwareprodukte aus einem Source Code mit JavascriptGerman: Softwareprodukte aus einem Source Code mit Javascript
German: Softwareprodukte aus einem Source Code mit JavascriptRalf Schwoebel
 
Responsive Webdesign Process
Responsive Webdesign ProcessResponsive Webdesign Process
Responsive Webdesign ProcessSven Wolfermann
 
jQuery Mobile Kompakt - das Kompendium - über 150 Seiten (typovision)
jQuery Mobile Kompakt  - das Kompendium - über 150 Seiten (typovision)jQuery Mobile Kompakt  - das Kompendium - über 150 Seiten (typovision)
jQuery Mobile Kompakt - das Kompendium - über 150 Seiten (typovision)die.agilen GmbH
 
Responsive Webdesign mit Bootstrap
Responsive Webdesign mit BootstrapResponsive Webdesign mit Bootstrap
Responsive Webdesign mit BootstrapGregor Biswanger
 

Semelhante a Sencha Touch und PhoneGap (20)

Cross-Apps-Entwicklung für iPhone, Android und Co.
Cross-Apps-Entwicklung für iPhone, Android und Co.Cross-Apps-Entwicklung für iPhone, Android und Co.
Cross-Apps-Entwicklung für iPhone, Android und Co.
 
Mobile Webentwicklung mit HTML5
Mobile Webentwicklung mit HTML5Mobile Webentwicklung mit HTML5
Mobile Webentwicklung mit HTML5
 
HTML5-Features
HTML5-FeaturesHTML5-Features
HTML5-Features
 
Mit jQTouch auf's iPhone & Android
Mit jQTouch auf's iPhone & AndroidMit jQTouch auf's iPhone & Android
Mit jQTouch auf's iPhone & Android
 
Die Zukunft der Webstandards - Webinale 31.05.2010
Die Zukunft der Webstandards - Webinale 31.05.2010Die Zukunft der Webstandards - Webinale 31.05.2010
Die Zukunft der Webstandards - Webinale 31.05.2010
 
HTML5 Offline - Fallstricke für mobile Webseiten und WebApps
HTML5 Offline - Fallstricke für mobile Webseiten und WebAppsHTML5 Offline - Fallstricke für mobile Webseiten und WebApps
HTML5 Offline - Fallstricke für mobile Webseiten und WebApps
 
Webstandards auf dem Weg zu Standards im Mobilen Bereich
Webstandards auf dem Weg zu Standards im Mobilen BereichWebstandards auf dem Weg zu Standards im Mobilen Bereich
Webstandards auf dem Weg zu Standards im Mobilen Bereich
 
Echte Lösungen, keine Tricks
Echte Lösungen, keine TricksEchte Lösungen, keine Tricks
Echte Lösungen, keine Tricks
 
Top 10 Internet Trends 2006
Top 10 Internet Trends 2006Top 10 Internet Trends 2006
Top 10 Internet Trends 2006
 
Html5 - Traum oder Wirklichkeit
Html5 - Traum oder WirklichkeitHtml5 - Traum oder Wirklichkeit
Html5 - Traum oder Wirklichkeit
 
Mobile Web Apps
Mobile Web AppsMobile Web Apps
Mobile Web Apps
 
2009 - DNC: Silverlight ohne UI - Nur als Cache
2009 - DNC: Silverlight ohne UI - Nur als Cache2009 - DNC: Silverlight ohne UI - Nur als Cache
2009 - DNC: Silverlight ohne UI - Nur als Cache
 
Erstellung von mobilen cross-platform-Apps
Erstellung von mobilen cross-platform-AppsErstellung von mobilen cross-platform-Apps
Erstellung von mobilen cross-platform-Apps
 
Creasoft-Akademie - Mobile Multiplattform Apps
Creasoft-Akademie - Mobile Multiplattform AppsCreasoft-Akademie - Mobile Multiplattform Apps
Creasoft-Akademie - Mobile Multiplattform Apps
 
SharePoint, HTML5 und mobile Geräte (SharePoint UserGroup Dresden 11/2011)
SharePoint, HTML5 und mobile Geräte (SharePoint UserGroup Dresden 11/2011)SharePoint, HTML5 und mobile Geräte (SharePoint UserGroup Dresden 11/2011)
SharePoint, HTML5 und mobile Geräte (SharePoint UserGroup Dresden 11/2011)
 
German: Softwareprodukte aus einem Source Code mit Javascript
German: Softwareprodukte aus einem Source Code mit JavascriptGerman: Softwareprodukte aus einem Source Code mit Javascript
German: Softwareprodukte aus einem Source Code mit Javascript
 
Responsive Webdesign Process
Responsive Webdesign ProcessResponsive Webdesign Process
Responsive Webdesign Process
 
jQuery Mobile Kompakt - das Kompendium - über 150 Seiten (typovision)
jQuery Mobile Kompakt  - das Kompendium - über 150 Seiten (typovision)jQuery Mobile Kompakt  - das Kompendium - über 150 Seiten (typovision)
jQuery Mobile Kompakt - das Kompendium - über 150 Seiten (typovision)
 
HTML5 Update (am Internet-Briefing)
HTML5 Update (am Internet-Briefing)HTML5 Update (am Internet-Briefing)
HTML5 Update (am Internet-Briefing)
 
Responsive Webdesign mit Bootstrap
Responsive Webdesign mit BootstrapResponsive Webdesign mit Bootstrap
Responsive Webdesign mit Bootstrap
 

Sencha Touch und PhoneGap