PhoneGap is an HTML5 application platform that allows you to author native applications with web technologies and get access to APIs and application stores. PhoneGap is basically used for developing working code for iPhones, Androids, Blackberries, and WebOS devices that contains HTML, Cascading Style Sheet(CSS) and JavaScript. PhoneGap supports the following features across many of the major smart phone devices:
- Accelerator
- Camera
- Compass
- contacts
- Files
- Geolocation
- Media
- Network
- Notifications (alerts, sounds, vibrations)
- Storage
Applications of PhoneGap
- Working with Contacts
With PhoneGap, you can easily do the following contacts features: Create a contact using the create() method, Save the contact by using save() method, Find a contact using find() method, Clone a contact using clone() method, Remove a contact using remove() method. - Working with Camera
The PhoneGap API provides two ways to capture images, and one is giving access to the camera object. The second is by using media capture API. - Working with media files
Using Media Capture API, we can also use it to capture audio and video data as well. This allows you to start and stop a recording, play, stop and pause media files and even display an audio file's duration. - Working with Storage Options
PhoneGap also supports a Web SQL database. As with HTML5, you'll be working with SQLite locally, which is normally more than sufficient to create all kinds of rich data back-ends.
PhoneGap API
API, an abbreviation of Application Program Interface, is a set of routines, protocols, and tools for building software applications. A good API makes it easier to develop a program by providing all the building blocks. A programmer then puts the blocks together. An API may describe the ways in which a particular task is performed. So here are the API components:
- Accelerator- Tap into the device's motion sensor.
- Camera- Capture a photo using the device's camera.
- Capture- Capture media files using the device's media capture applications.
- Compass- Obtain the direction the device is pointing to.
- Connection- Quickly check the network state.
- Contacts- Work with the device's contact database.
- Device- Gather device-specific information.
- Events- Hook into native events through JavaScript.
- File- Hook Into native file system through JavaScript.
- Geolocation- Make your app location aware.
- Media- Record and play back audio files.
- Network- Visual, audible, tactile device notification.
- Storage- Hook into the device native storage options.

Installation and Configuring PhoneGap
1. Requirements
System Requirements - Windows 7, Windows Vista w/ sp2
Note: Running in VM has issues, if you are on a Mac, you will need to setup a bootcamp partition with Windows 7 or Vista
2. Installation
a) Download the free tools
- http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=27570
b) Membership
In order to submit apps and test apps on a device, you will need to become an App Hub member.
- http://create.msdn.com/en-US/home/membership
c) Get the PhoneGap code
- Download + unzip the latest copy of PhoneGap from http://wiki.phonegap.com/w/page/39991939/Getting%20Started%20with%20PhoneGap%20iOS%20using%20Xcode%204.
- From the unzipped 'Windows Phone' folder copy the file PhoneGapStarter.zip to your templates folder:
C:\Users\[USERNAME]\Documents\Visual Studio 2010\Templates\ProjectTemplates\Silverlight for Windows Phone.
3. Setup a new project
a) Open Visual Studio Express for Windows Phone and choose 'New Project'
b) Select PhoneGapStarter
c) Give your project a name, and select 'OK'






Abhishek JaiswalPosted Jul 11, 2014, 8:18 AM
Completely helpful!
Narendra DuttaPosted Jan 28, 2014, 8:55 PM
can you tell me how can i start coding using c# with phonegap, basically i want to develop a app for surface tab and i am new in phonegap