Book Image

PhoneGap Beginners Guide (third edition)

Book Image

PhoneGap Beginners Guide (third edition)

Overview of this book

Table of Contents (22 chapters)
PhoneGap Beginner's Guide Third Edition
About the Authors
About the Reviewers
Related Plugin Resources

Creating the project

As the first step of our activity, we need to create a new PhoneGap project. We will be using PhoneGap CLI tools to create a project and install various plugins.

Now, let's create a new project named PhoneGap, using PhoneGap CLI:

C:\> phonegap create PhoneGap

After creating the project, as you know, a new directory with the project name will be created. Let's make that our current directory:

C:\> cd PhoneGap

Now, let's add Android as our target platform. If you are interested, you can add other platforms too, if you have the required SDKs installed:

C:\PhoneGap> phonegap platform add android

We should have the fastclick.js, jquery.mmenu.min.all, and jquery-2.1.3.min.js libraries downloaded in the js folder of the project's home www directory. Note that all CSS files of the jQuery and mMenu libraries should be placed in the css directory of the www directory. Now, we can kick off our project development.

Installing plugins

As our application is going to use almost...