hybrid app development using phonegap/cordova

22
Hybrid App Development using PhoneGap/Cordova

Upload: javatechig-resources-for-developers

Post on 09-May-2015

611 views

Category:

Education


1 download

DESCRIPTION

Hybrid App Development using PhoneGap/Cordova Contents Overview of Mobility Enterprise Mobility & Industry challenges Mobile Web vs. Native App development Bridging the Native Gap & Intro PhoneGap PhoneGap features Creating “Hello World!” using PhoneGap PhoneGap Plugin development Resources

TRANSCRIPT

Page 1: Hybrid App Development using PhoneGap/Cordova

Hybrid App Development using PhoneGap/Cordova

Page 2: Hybrid App Development using PhoneGap/Cordova

Agenda

Overview of Mobility

Enterprise Mobility & Industry challenges

Mobile Web vs. Native App development

Bridging the Native Gap & Intro PhoneGap

PhoneGap features

Creating “Hello World!” using PhoneGap

PhoneGap Plugin development

Resources

Page 3: Hybrid App Development using PhoneGap/Cordova

Overview of Mobility and scopes

Mobile phones become smart

Multiple features and appealing services

Page 4: Hybrid App Development using PhoneGap/Cordova

iPhone’s biggest impact: making scene for data and app

Text messaging is broaden to its audience beyond youth

Advertising via mobile looks lot more appealing

Easy access to Game’s from different store attract heavy gamers

Consumer oriented services like bill payment, payments status

checking, etc.

Social Media

Consumer Market

IT & Tech

Device Manufacturer

Page 5: Hybrid App Development using PhoneGap/Cordova

GeoLocation

PIM Contacts

Camera

Barcode

Date/Time Picker

Native Menus

Tab Bar

Signature Capture

Social Media

Consumer Market

IT & Tech

Device Manufacturer

Bluetooth

Calendar

Push Alert

Screen Rotation

Native Maps

Audio Playback /Ringtones

NFC

Navigation Bar

Page 6: Hybrid App Development using PhoneGap/Cordova

Why Mobile Apps?

Popularity of smart phones

Manifoldness of possibilities

App store opportunities

Unmatched user experience

11

22

33

44

Application visibility445

Page 7: Hybrid App Development using PhoneGap/Cordova

Industry Challenges

Apps require a back-end server to access enterprise

Development tools make a difference

Developing the application for different platforms is cost effective

Code base gets messy and difficult to maintain

Time to market increases

Enterprise View

Cross-platform apps

Must consider security

Access corporate data

Apps must be managed

Page 8: Hybrid App Development using PhoneGap/Cordova

Native App

Designed to run on device operating

system and machine firmware

It typically need to be adapted/adjusted

for different device

Mobile Web App

All or some part of the software

downloaded from web each time it runs

It is usually accessible form all mobile

platforms

Difference between Native Mobile app and Mobile web app

Page 9: Hybrid App Development using PhoneGap/Cordova

Advantages of Mobile Web Approach

Immediacy

Compatibility

Upgradability

Instantly

Shareability

Reach

Lifecycle

Time and Cost

Support and Sustainability

Page 10: Hybrid App Development using PhoneGap/Cordova

HTML/JS/CSS

October 2011, PhoneGap was donated to the Apache Software Foundation (ASF) under the name Apache Cordova.

Current PhoneGap 2.9.0

Page 11: Hybrid App Development using PhoneGap/Cordova

What is PhoneGap ?

An open source development framework for building cross platform mobile apps

Page 12: Hybrid App Development using PhoneGap/Cordova

Advantages

One code base, multiple platforms

Reuse existing web developer skills

Shorter learning curve

Faster development

Mobile site and app with same code

Reusable web code and

infrastructure

Code portable to other environments

Based on open standards

Active and growing community

Open source with multiple large

stakeholders

Page 13: Hybrid App Development using PhoneGap/Cordova

iPhone / iPhone 3G and Higher

Blackberry OS 5.x and Newer

Android

Web OS

Windows Phone 7

Symbian

Bada

Supported Platforms

Page 14: Hybrid App Development using PhoneGap/Cordova

xui

HTML5 & JavaScript Frameworks

Page 15: Hybrid App Development using PhoneGap/Cordova

API’s

Page 16: Hybrid App Development using PhoneGap/Cordova

Tools

EmulatorsRippleAny platform emulator

(iOS Simulator, Android Virtual Devices, etc)

DebuggingWeinre (web inspector remote)

IDEsEclipseDreamweaver

Page 17: Hybrid App Development using PhoneGap/Cordova

Creating “Hello World” !

Creating the Android Project and create a activity extending to

DroidGap

Add phonegap.jar to libs folder <project>/libs

Add ‘phonegap.jar’ to java build path

Add the config.xml file located inside xml folder required for

phone gap. Paste the entire xml folder inside res folder

Add the required permissions to AndroidMainfeast.xml folder

Creating the HTML (index.html) file and put in assets/www folder

Create and start AVD. Run the Application

Page 18: Hybrid App Development using PhoneGap/Cordova

public class MainActivity extends DroidGap{ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

super.loadUrl("file:///android_asset/www/index.html")

//super.loadUrl(Config.getStartUrl()); }}

Page 19: Hybrid App Development using PhoneGap/Cordova

Demo Time

Page 20: Hybrid App Development using PhoneGap/Cordova

Resources

Source: github.com/callback

Bugs: issues.apache.org/jira/browse/CB

Docs: docs.phonegap.com

Wiki: wiki.phonegap.com

Support: groups.google.com/group/phonegap

IRC: irc.freenode.net #phonegap

Apps: phonegap.com/apps

Page 21: Hybrid App Development using PhoneGap/Cordova
Page 22: Hybrid App Development using PhoneGap/Cordova

Nilanchala Panigrahy

[email protected]

+91- http://javatechig.com

Thank You!Thank You!