34
Introduction to PhoneGap Raymond Camden

Introduction to PhoneGap

Embed Size (px)

DESCRIPTION

You can view a recording of this URL here: http://experts.adobeconnect.com/p8x6r7cl6te/

Citation preview

Page 1: Introduction to PhoneGap

Introduction to PhoneGap

Raymond Camden

Page 2: Introduction to PhoneGap

Your Speaker

Developer Evangelist for Adobe Focused on Web Standards www.raymondcamden.com [email protected] @cfjedimaster

Page 3: Introduction to PhoneGap

Wait – Adobe bought PhoneGap?

Page 4: Introduction to PhoneGap

Wait – Adobe bought PhoneGap?

Page 5: Introduction to PhoneGap

Wait – Adobe bought PhoneGap?

Page 6: Introduction to PhoneGap

Adobe bought Nitobi

We buy all companies with rhyming names (just because)

PhoneGap is an open source project In process to becoming a project under

the Apache Software Foundation New name: Cordova

Page 7: Introduction to PhoneGap

Apache Cordova

Cordova is the open source project PhoneGap is the implemenation Like Webkit for Chrome/Safari http://incubator.apache.org/cordova

Page 8: Introduction to PhoneGap

What is PhoneGap?

"PhoneGap is an HTML5 app platform that allows you to author native applications with web technologies and get access to APIs and app stores. PhoneGap leverages web technologies developers already know best... HTML and JavaScript."

Page 9: Introduction to PhoneGap

What is PhoneGap, really?

Page 10: Introduction to PhoneGap

What is PhoneGap, really?

Awesome sauce: http://www.thinkgeek.com/caffeine/dc05/

Page 11: Introduction to PhoneGap

What is PhoneGap, really?

Page 12: Introduction to PhoneGap

Where does it go….

See the pretty icons below… Specific details about each: ◦ http://phonegap.com/about/features

To be clear: Phones, Tablets, e-Readers, and whatever else Silicon Valley throws our way in 2012.

Page 13: Introduction to PhoneGap
Page 14: Introduction to PhoneGap

Features

Accelerometer ◦ "The thing you shake"

Compass ◦ "The thing that tells you what direction you

are heading"

Device ◦ "Generic info about the device"

Page 15: Introduction to PhoneGap

Features

Geolocation ◦ "The thing that tells you where you are"

Storage ◦ "The place you put your stuff"

Camera ◦ "Pictures of your cat"

Page 16: Introduction to PhoneGap

Features

Connection ◦ "Am I offline or just in the wrong part of

Lafayette?"

Events ◦ "What is my phone doing now?!?!"

Media ◦ "Work with all those legally purchased MP3s."

Page 17: Introduction to PhoneGap

Features

Capture ◦ "Make new videos, sounds, and pictures of

your cat"

Contacts ◦ "I really do have 200 friends!"

File ◦ "For important file stuff"

Notification ◦ "Buzzzzzzzzzzzzzzzzzz"

Page 18: Introduction to PhoneGap

Features

Remote Ajax w/o guilt Orientation The App Store (all of them actually)

Page 19: Introduction to PhoneGap

Who is using PhoneGap?

Page 20: Introduction to PhoneGap

Featured Apps

Page 21: Introduction to PhoneGap

How can you use it? (Tooling)

Plain text + command line #ubergeek Adobe Dreamweaver CS 5.5 Eclipse Xcode Other bits for other platforms Warning – docs are a bit in flux

Page 22: Introduction to PhoneGap

How can you use it? (Code)

Add cordova-VERSION.js to your HTML Provides the hooks to the awesome Done

Page 23: Introduction to PhoneGap
Page 24: Introduction to PhoneGap

The Hard Way

Page 25: Introduction to PhoneGap

Demo – The Easy Way

http://wiki.phonegap.com/w/page/34483744/PhoneGap%20Eclipse%20PlugIn%20for%20Android

Page 26: Introduction to PhoneGap

Code Demos!

General Device Contact Search Compass Geolocation Camera (oops, broken) jQuery Mobile (RSS) SimpleDB

Page 27: Introduction to PhoneGap

Plugins

Page 28: Introduction to PhoneGap

Plugins

Written in your platform's native language Provide a JavaScript API https://github.com/phonegap/phonegap-

plugins

Page 29: Introduction to PhoneGap

Demo

Page 30: Introduction to PhoneGap

PhoneGap Build

Public Beta Automated builds for all platforms API http://phonegap.com/2011/10/13/phonega

p-build-pricing-plans-update/

Page 31: Introduction to PhoneGap

Demo

Page 32: Introduction to PhoneGap

Debugging PhoneGap

Build on the desktop first! Consider your development tools Weinre ◦ http://phonegap.github.com/weinre/

debug.phonegap.com

Page 33: Introduction to PhoneGap

Help!

Mailing List ◦ http://groups.google.com/group/phonegap

Books ◦ PhoneGap Beginner's Guide ◦ More on Amazon

IRC

Page 34: Introduction to PhoneGap

Wrap Up

7 Platforms Free HTML+JavaScript+CSS And you win!