Top Banner
Prepared By: Krushnakant A. Solanki
16
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Phonegap

Prepared By:

Krushnakant A. Solanki

Page 2: Phonegap

2

OVERVIEW

What is PhoneGap?

Architecture

How PhoneGap Works?

Why PhoneGap?

Features

Applications

Use PhoneGap in Android

Page 3: Phonegap

3

INTRODUCTIONTO

PhoneGap

Page 4: Phonegap

WHAT IS PHONEGAP?

o PhoneGap is a opensource framework for quickly designing cross platform Mobile Apps Using HTML,CSS & JavaScript

4

Page 5: Phonegap

WHAT IS PHONEGAP?

o PhoneGap uses standards-based web technologies to bridge web applications and mobile devices.

5

Wrap your app with Wrap your app with PhoneGapPhoneGap

Deploy to Deploy to multiple multiple platforms!platforms!

Page 6: Phonegap

WHAT IS PHONEGAP?

6

Page 7: Phonegap

WHAT IS PHONEGAP?

7

Page 8: Phonegap

PHONEGAP ARCHITECTURE

8

Page 9: Phonegap

HOW PHONEGAP WORKS?

USER INTERFACEHTML,CSS & JavaScript

APPLICATION LOGICJavaScript

DEVICE FUNCTIONALITYJavaScript PhoneGap API

9

Page 10: Phonegap

Why PhoneGap?

10

Supported mobile platforms ….

Page 11: Phonegap

WHY PHONEGAP

July 2005

Google acquired Android Inc. 5 Nov 2007

Open HandSet Alliance formed-

Google, HTC, Intel, Motorola, Qualcomm,T-Mobile Android is the OHA first product 12 Nov 2007

OHA released a preview of the Android OHA

11

Page 12: Phonegap

PHONEGAP FEATURES

12

AccelerometerAccelerometer CameraCamera CompassCompass ContactsContacts FileFile

AccelerometerAccelerometer CameraCamera CompassCompass ContactsContacts FileFile

Geolocation Media Network Storage Notifications

Geolocation Media Network Storage Notifications

Page 13: Phonegap

PHONEGAP APPS

3 Card Poker Diary Orbium Puzzle

City TouchChessLogitech Squeezebox

Page 14: Phonegap

USE PHONEGAP IN ANDROID

Download phonegap.zip from phonegap.com.

Extract zip and Put phonegap.jar(corodova.jar) file into Buid path or into libs folder

Now create new folder www into asset folder and put the phonegap.js file in www folder.

Create an index.html file in /assets/www and write you code there.

14

Page 15: Phonegap

USE PHONEGAP IN ANDROID

Make a few adjustments to the project's main Java file Change the class's extend from Activity to

DroidGap Replace the setContentView() line with

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

Add import com.phonegap.* Remove import android.app.Activity

15

Page 16: Phonegap

THANK YOU

Any Question?