Shoukry Kattan - Titanium Mobile. Cross Platform Mobile Apps

725 views

Published on

Shoukry presents Titanium Mobile to create cross platform mobile apps.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Shoukry Kattan - Titanium Mobile. Cross Platform Mobile Apps

  1. 1. Approach Mobile Web Native Cross – platform/HybridLanguage HTML5, CSS, Platform dependent. Write using one Javascript Objective C for iOS language. “Compiled” Java for Android or “Interpreted” to native J2ME for Blackberry code for the platform.Native UI No. You can “fake it” with Yes Yes a less rich experienceServer Yes Yes YescommunicationAccess to native No Yes YesAPIs and features(Photo gallery, Phonebook,etc.)Access to Hardware No Yes Yes(Accelerometer,GPS,Camera,etc)
  2. 2. Develop for multiple platforms: Using the same Technology and same codebase. Team with the same skillset, expertise. Write once run anywhere.Which leads to : Reduced development time Reduced development cost Reduced development effort
  3. 3.  Free Open source Use Javascript to write native applications Active and big community Commercial support, custom development and modules are available from Appcelerator. Companies using Titanium
  4. 4. Compile time : Pre-compiler: JavaScript code is optimized, dependency hierarchy of APIs used is created. Front-end compiler: The appropriate platform-specific native code is generated along with projects and specific code is built to compile Titanium for a given platform compiler. Platform compiler & packager: Using native tools for the particular platform , code is compiled and application is packaged.Runtime : Javascript is interpreted at runtime with hooks to execute native code (Javascript bridge)
  5. 5.  Standard and familiar web model (MVC) APIs:  UI APIs  Phone APIs  Media  Database  FileSystem  Network  Accelerometer  Geolocation  Many more …
  6. 6.  Native UI components UI Components are:  Windows (Hosting views)  Views (Draw conent on screen, Ex. Image View)  Widgets (Views with actions, Ex. Button)
  7. 7. VideoSoundCamera
  8. 8.  Accelerometer Maps
  9. 9.  The same code renders differently depending on the platform
  10. 10.  Build and test the application on multiple platforms from day one if possible Separate business logic from UI construction Component Oriented design  Your application is a library of Application specific components  Use custom events instead of component and platform specific events.  Use built in Titanium features to handle multiple platforms, screen resolutions and densities

×