Book Image

Phonegap Essentials

By : Ivan Turkovic
Book Image

Phonegap Essentials

By: Ivan Turkovic

Overview of this book

Table of Contents (15 chapters)

Starting a new application


Until now we have been learning how to set up the environment, how we can use the command-line interface (CLI), and how to use the most basic plugins. Now, if we followed the installation process, we should be able to create our first application and see how it works. For the following chapters, we will be using the Android simulator or a native Android device for features that require native capability. All the code works on any platform or, in the case of plugins, on all platforms that support plugins. So let's get started and create our first PhoneGap application.

Creating a new application

We already know all the commands so, if a command used in the following chapters is not clear, please take a look at the previous chapters as all used commands are mentioned there.

  1. Let's create our first application called HelloWorld with:

    phonegap create HelloWorld
    
  2. It should print the following response:

  3. The next step is to go into the project with:

    cd HelloWorld
    
  4. If you list...