Nex-G provides excellent training in - Wireless Technology Training, Mobile Application Training, Android Development, iPhone Development, 3G Training, LTE Training, Product Development Company in Noida
23. August11,2013
Cross-Platform
CROSS PLATFORM MOBILE APPS
When To
Replica Web Apps
Standard Restful
Widget based apps
Many Platforms
When Not To
Long Running Services
Complex N/W comm.
Canvas based Apps
Only Few Platforms
24. August11,2013
Cross-Platform
HYBRID MOBILE APPS
When To
Fairly Simple UI
Complex Backend
Quite few platforms
E.g ShareFile
Recommended method - PhoneGap Plugin
Why To
• Some parts of app are
common
• Rest parts are different
• Use Cross Platform to
develop common part
• Use Native to develop the
weight lifting parts
54. August11,2013
Cross-Platform
WEBKIT PLATFORM
All Mobile Platforms have something common that is
a Modern Browser
All these browsers are based on WebKit
Moreover all these platform support showing
embedded browser in Applications (aka WebView)
Strange enough all these WebViews provide hooks
from javascript to java and vice a versa
In short WebView is the new Virtual Machine
55. August11,2013
Cross-Platform
MAPPING TO NATIVE CODE
Say Application is written in JavaScript
The JavaScript code is running in Interpreter
The Interpreter internally forwards calls to the native
code
Limitation being the you can only map to subset of
code available on all target platforms.
BB
ios
android
61. August11,2013
Cross-Platform
PHONEGAP PREREQUISTES
Need to be acquainted with Android, IOS, BlackBerry, WebOS
Need to be expert at HTML/Javascript or framework like GWT
Need to be acquainted with JavaScript libraries like
Jquery
script.aculo.us
Prototype
Etc
Or Ajax framework like GWT
Use existing IDEs like Eclipse or Xcode, PhoneGap has no IDE
64. August11,2013
Cross-Platform
DIGGING DEEPER (ANDROID)
Instead of extending a Activity, we extend DroidGap
DroidGap internally uses a WebView to show
local/remote HTML/JavaScript/CSS
This WebView has hooks to
Call Java from JavaScript
And Vice a Versa
More like building Web 2.0 Applications
But also calling some java scripts which allow
accessing native mobile resources e.g.
Geo, Database, File System, etc
77. August11,2013
Cross-Platform
HYBRID APP DEVELOPMENT
Have Web Developers for Common UI
Have native code experts for heavy weight lifting
Use frameworks like PhoneGap to glue the above
two pieces
Measure at every milestone to keep track of effect of
changes
Use Automation to regress every layer
78. COMPARISON
Titanium
Gives out native app
API is more proprietary
UI has Limitations
UI will be fast
Much better User
Experience
Portal Code can not be
reused
Extensions are possible
Limited support for
HTML/Javascript
PhoneGap
Gives out a mobile web app
API is less proprietary
UI possibilities are unlimited
UI could be slow
User Experience will get
better with enhancements
Portal Code can be reused
Extensions are possible and
easy to implement
Cross-Platform