Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Phonegap Essentials

You're reading from   Phonegap Essentials Use PhoneGap to build cross-platform mobile applications quickly and efficiently

Arrow left icon
Product type Paperback
Published in Sep 2015
Publisher
ISBN-13 9781785284687
Length 178 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Ivan Turkovic Ivan Turkovic
Author Profile Icon Ivan Turkovic
Ivan Turkovic
Arrow right icon
View More author details
Toc

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:
    Creating a new application
  3. The next step is to go into the project with:
    cd HelloWorld
    
  4. If...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image