Adobe
Products
Acrobat
Creative Cloud
Creative Suite
Digital Marketing Suite
Digital Publishing Suite
Elements
Photoshop
Touch Apps
Student and Teacher Editions
More products
Solutions
Creative tools for business
Digital marketing
Digital media
Education
Financial services
Government
Web Experience Management
More solutions
Learning Help Downloads Company
Buy
Home use for personal and home office
Education for students, educators, and staff
Business for small and medium businesses
Licensing programs for businesses, schools, and government
Special offers
Search
 
Info Sign in
Welcome,
My cart
My orders My Adobe
My Adobe
My orders
My information
My preferences
My products and services
Sign out
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out My orders My Adobe
Preorder Estimated Availability Date. Your credit card will not be charged until the product is shipped. Estimated availability date is subject to change. Preorder Estimated Availability Date. Your credit card will not be charged until the product is ready to download. Estimated availability date is subject to change.
Qty:
Purchase requires verification of academic eligibility
Subtotal
Review and Checkout
Adobe Developer Connection / Dreamweaver Developer Center /

Building a mobile app with PhoneGap: The basics

by Steve Gill

Steve Gill
  • Adobe
  • twitter.com/#!/stevesgill

Content

  • What is PhoneGap?
  • Mobile development advice
  • Where to go from here

Created

31 October 2011

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
PhoneGap Build

Requirements

Prerequisite knowledge

Some experience with Dreamweaver is helpful, but an interest in developing mobile applications is essential.

User level

Beginning

This article provides an introduction to PhoneGap as well as some general mobile development advice that you should consider before you start building your mobile app.

What is PhoneGap?

PhoneGap is an open source framework that enables you to use HTML, CSS, and JavaScript to build mobile apps for multiple platforms. It supports seven platforms: Android, iOS, BlackBerry, Windows Phone 7, webOS, Symbian, and Bada.

Benefits of PhoneGap

PhoneGap allows you to use a single code base to build and deploy an application to multiple platforms. In traditional mobile development, you would have to create a separate app for each platform using the programming language of that platform. With PhoneGap, you can use HTML, CSS, and JavaScript—technologies you're likely already familiar with. Plus, you can use the same code for all platforms and even your mobile website.

Because you do not have to rewrite your code in a different programming language for each platform, developing a multiplatform app with PhoneGap is often significantly faster than developing apps for each platform individually.

PhoneGap provides access to native APIs that you cannot normally access with JavaScript, so your application has access to the camera, accelerometer, geolocation, contacts, and other native features.

Mobile development advice

If you've yet to start a mobile development project, there are a few things to consider before you do, including whether you need to build a mobile app at all and which platforms you will be targeting.

Mobile app versus mobile web

A big question to consider before you start development is if you should make a mobile application in the first place. In some cases, it might make sense to skip the mobile application and instead develop for the browser. Here are some points that might help you decide:

Reasons to build a mobile app

  • Your application needs access to one or more native APIs (such as the camera, accelerometer, and so on).
  • You want the application's icon to appear on the home screen of the mobile device.
  • Your application needs to be available offline.
  • You want to monetize your application by making it available in an app store or market.

Reasons to build a mobile website

  • You do not want to go through the App Store submission process.
  • You would rather have your users use their browser instead of downloading an application.
  • Some device browsers have better functionality than the webviews.

Designing for multiple mobile devices

When designing for multiple mobile devices, consider the following best practices and caveats:

  • Know and understand the devices you are targeting. It is important to have access to actual devices and not just emulators. Know the screen resolutions, screen sizes, and aspect ratios of the devices for which you are designing. Use CSS3 media queries to build fluid layouts that can handle all of the different screen characteristics of your target devices.
  • User flow and functionality should be the same on every device. For example, if your application enables the user to take a picture on an Android device, it should provide the same capability on a BlackBerry device, following the same basic steps on both devices.
  • Be aware of each platform's navigational convections. Devices and platforms may have different input conventions. For instance, many Android devices have hardware buttons for Home and Back, whereas iOS devices use the touch interface.
  • Develop for your brand. An application that is styled using iOS conventions will not look as appealing on an Android device and vice versa. Instead of styling to a device, style to your brand.

Learn HTML5, CSS3, and JavaScript

If you are not already proficient with HTML5, CSS3, and JavaScript, then learning more about them will enable you to make even more compelling mobile apps. You can get by with some basic knowledge while using Dreamweaver, but if you want to build more sophisticated apps, you should start learning about these three technologies.

Where to go from here

After reading this brief introduction to PhoneGap and considering a few mobile development options, you're ready to move on to Andrew Trice's PhoneGap series, such as:

  • Getting started with PhoneGap in Eclipse for Android
  • Getting started with PhoneGap in Xcode for iOS
  • Extending PhoneGap with native plugins for Android
  • Extending PhoneGap with native plugins for iOS

Also, explore the following sites:

  • HTML5Rocks
  • Which Element
  • Dive into HTML5
  • The HTML5 Doctor
  • (When) can I use…
  • HTML5 developer center
  • HTML5 Weekly
  • Adobe & HTML5

Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License+Adobe Commercial Rights

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Permissions beyond the scope of this license, pertaining to the examples of code included within this work are available at Adobe.

Tutorials and samples

Tutorials

  • Understanding HTML5 semantics: Changed and absent elements
  • Mobile app with PhoneGap: Submitting to the Apple App Store
  • PhoneGap and Dreamweaver: Releasing on iOS
  • Mobile app with PhoneGap: Creating a release build for Android

Samples

  • Responsive design with jQuery marquee
  • Customizable starter design for jQuery Mobile
  • Customizable starter design for HTML5 video
  • Customizable starter design for multiscreen development

Dreamweaver user forum

More
04/23/2012 Resolution/Compatibility/liquid layout
04/20/2012 using local/testing server with cs5 inserting images look fine in the split screen but do not show
04/18/2012 Ap Div help
04/23/2012 Updating

Dreamweaver Cookbook

More
11/07/2011 Simple social networking share buttons
09/20/2011 Registration form that will generate email for registrant to validate
08/21/2011 Spry Accordion - Vertical Text - Auto Start on Page Load - Mouse Over Pause
08/17/2011 Using cfdump anywhere you like

Products

  • Acrobat
  • Creative Cloud
  • Creative Suite
  • Digital Marketing Suite
  • Digital Publishing Suite
  • Elements
  • Mobile Apps
  • Photoshop
  • Touch Apps
  • Student and Teacher Editions

Solutions

  • Digital marketing
  • Digital media
  • Web Experience Management

Industries

  • Education
  • Financial services
  • Government

Help

  • Product help centers
  • Orders and returns
  • Downloading and installing
  • My Adobe

Learning

  • Adobe Developer Connection
  • Adobe TV
  • Training and certification
  • Forums
  • Design Center

Ways to buy

  • For personal and home office
  • For students, educators, and staff
  • For small and medium businesses
  • For businesses, schools, and government
  • Special offers

Downloads

  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR
  • Adobe Shockwave Player

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2012 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy Policy and Cookies (Updated)

Ad Choices

Reviewed by TRUSTe: site privacy statement