Adobe
Products

Top destinations

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • SiteCatalyst
  • Students
  • Elements family

Adobe Creative Cloud

  • What is Adobe Creative Cloud?
  • Design
  • Web
  • Photography
  • Video
  • Students
  • Teams
  • Enterprise
  • Educational institutions

Design and photography

  • Photoshop
  • Illustrator
  • InDesign
  • Adobe Muse
  • Lightroom

Video

  • Adobe Premiere
  • After Effects

Web development and HTML5

  • Edge Tools & Services [opens in a new window]
  • Dreamweaver
  • Gaming [opens in a new window]

Adobe Marketing Cloud

  • What is Adobe Marketing Cloud?
  • Digital analytics
  • Social marketing
  • Web experience management
  • Testing and targeting
  • Media optimization

Analytics

  • SiteCatalyst
  • Adobe Discover
  • Insight

Social

  • Adobe Social

Experience Manager

  • CQ
  • Scene7

Target

  • Test&Target
  • Recommendations
  • Search&Promote

Media Optimizer

  • AdLens
  • AudienceManager
  • AudienceResearch

Document services

  • Acrobat
  • EchoSign [opens in a new window]
  • FormsCentral [opens in a new window]
  • SendNow [opens in a new window]
  • Acrobat.com [opens in a new window]

Publishing

  • Digital Publishing Suite

  • See all products
Business solutions

By business need

  • Digital analytics
  • Digital publishing
  • Document management
  • Media optimization
  • Social marketing
  • Testing and targeting
  • Video editing and serving
  • Web development [opens in a new window]
  • Web experience management
  • See all business needs

By industry

  • Broadcast
  • Education
  • Financial services
  • Government
  • Publishing
  • Retail
  • See all industries
Support & Learning

I need help

  • Products
  • Adobe Creative Cloud
  • Adobe Marketing Cloud
  • Forums [opens in a new window]

I want to learn

  • Training and tutorials
  • Certification [opens in a new window]
  • Adobe Developer Connection
  • Adobe Design Center
  • Adobe TV [opens in a new window]
  • Adobe Marketing Center
  • Adobe Labs [opens in a new window]
Download
  • Product trials
  • Adobe Flash Player
  • Adobe Reader
  • Adobe AIR
  • See all downloads
Company
  • Careers at Adobe
  • Investor Relations
  • Newsroom
  • Privacy
  • Corporate Social Responsibility
  • Customer Showcase
  • Contact us
  • More company info
Buy
  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers
  • Adobe Marketing Cloud sales [opens in a new window]
Search
 
Info Sign in
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Welcome,
My Adobe
My orders
My information
My preferences
My products and services
Sign out
My cart
Privacy My Adobe
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out Privacy 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
Promotions
Estimated shipping
Tax
Calculated at checkout
Total
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
Was this helpful?
Yes   No

By clicking Submit, you accept the Adobe Terms of Use.

 
Thanks for your feedback.

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

  • Working with updated responsive layout features in the Dreamweaver CS6 update
  • Creating your first website – Part 3
  • Creating your first website – Part 2
  • Creating your first website – Part 5

Samples

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

Products

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • Digital Publishing Suite
  • Elements family
  • SiteCatalyst
  • For education

Download

  • Product trials
  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR

Support & Learning

  • Product help
  • Forums

Buy

  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers

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 © 2013 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy | Cookies

Ad Choices

Reviewed by TRUSTe: site privacy statement