phonegap platefrom technical seminar

21
Technical Seminar on PhoneGap PLATFORM SUBMITTED BY : HARSHAL RAVERKAR 141013004 COMPUTING TECHNOLOGY & VIRTUALIZATION

Upload: hraverkar

Post on 24-Jun-2015

209 views

Category:

Software


9 download

DESCRIPTION

Phone Gap Plate from.

TRANSCRIPT

Page 1: Phonegap Platefrom Technical seminar

Technical Seminar on

PhoneGap PLATFORM

SUBMITTED BY :

HARSHAL RAVERKAR

141013004

COMPUTING TECHNOLOGY & VIRTUALIZATION

Page 2: Phonegap Platefrom Technical seminar

CONTENTS

Introduction What is PhoneGap Supported Platform How it works Architecture Apache Cordova Pros & Cons of PhoneGap Application conclusion Reference

Page 3: Phonegap Platefrom Technical seminar

INTRODUCTION PhoneGap is a open source mobile

development framework produced by Nitobi, purchased by Adobe Systems in 2011.

Enables building of mobile device applications using JavaScript, HTML and CSS.

The PhoneGap applications are hybrid.

Page 4: Phonegap Platefrom Technical seminar

What is PhoneGap PhoneGap uses the native browser on

the device to render the HTML/CSS/JS Keep in mind that can affect the

experience It also keeps apps nice and small

PhoneGap uses the native project format for each platform

Open, emulate, and test from within the native development environment!

Page 5: Phonegap Platefrom Technical seminar

Package Your App for Distribution

Page 6: Phonegap Platefrom Technical seminar

Supported Platform

Page 7: Phonegap Platefrom Technical seminar

Basic API

Out of the box, PhoneGap provides support for a number of basic device APIs.- Accelerometer- Camera- Capture- Compass- Connection- Contacts- Device- Events- File- Geolocation- Media- Network- Notification- Storage

Page 8: Phonegap Platefrom Technical seminar

How it Works

Wrap it up with PhoneGap• Using the free open source framework

or PhoneGap build • You can access the native APIs

Deploy to multiple platforms Build your app once with web-standards• Based on HTML5• Standards-based web technologies to

bridge web applications and mobile devices

Page 9: Phonegap Platefrom Technical seminar

How it Works Include web code in a native app

project:- assets/www/js/, css/,

images/, etc. Native code loads a URL to the web

code through the device’s internal browser:-

Extend a CordovaWebViewClient - super.loadUrl(

“file:///android_asset/www/login.html” ); Apache Cordova exposes native device

APIs through JavaScript:navigator.device.

capture.captureImage ( captureSuccess(), captureError(), [options] );

Page 10: Phonegap Platefrom Technical seminar

Your CodeNative Web View

Native APIs

Native App - .apk, .xap, etc.

Architecture of PhoneGap

Page 11: Phonegap Platefrom Technical seminar

Device Notifications

Page 12: Phonegap Platefrom Technical seminar

Data Storage

Page 13: Phonegap Platefrom Technical seminar

Apache Cordova“Apache Cordova is a set of device APIs that allow a mobile app developer to access native device function such as the camera or accelerometer from JavaScript.”

A platform-specific engine that exposes

access to native device functionality through a series of JavaScript APIs.

PhoneGap is actually an open source distribution of Cordova.

Page 14: Phonegap Platefrom Technical seminar

Pros for PhoneGap Development

HTML5, CSS and JavaScript skills vs. Objective-C, Java and C#

Single code base for all platforms iOS, Android, WP 7 Mango, mobile web

You can take advantage of distribution and integrated payment Via the App Store or Android Market

Page 15: Phonegap Platefrom Technical seminar

Cons for PhoneGap Development Poor performance• If your app is graphically intense, i.e. a

game. • Caching or leveraging some 3rd party

solutions may be implemented with native graphics

• For the most part a native app is much faster/smoother than mobile web app

Page 16: Phonegap Platefrom Technical seminar

Cons for PhoneGap Development

Lack of pre-built UI widgets, transitions, standard controls, etc.

• Your development time can take longer Especially if you want a

polished- looking app with a native look and feel

Page 17: Phonegap Platefrom Technical seminar

Application

Page 18: Phonegap Platefrom Technical seminar

Conclusion Single Page Architecture Use Templates Structure Your Code Optimize Data Transfer Abstract Components Optimize for Touch Use Hardware Acceleration Optimize For Performance

Page 19: Phonegap Platefrom Technical seminar

Reference

tricedesigns.com/presentations/html5devconf/architecture/

PhoneGap.com/2012/05/02/PhoneGap-explained-visually/

docs.PhoneGap.com/en/2.2.0/guide_plugin-development_index.md.html

en.wikipedia.org/wiki/PhoneGap

PhoneGap.com/2012/.../new-wikipedia-ios-app-is-powered-by-PhoneGap

Page 20: Phonegap Platefrom Technical seminar

Any Question

Page 21: Phonegap Platefrom Technical seminar

Thanking You

Keep Smiling