PhoneGap
Beginner's Guide
Build cross-plaorm mobile applicaons with the PhoneGap
open source development framework
Andrew Lunny
BIRMINGHAM - MUMBAI
PhoneGap
Beginner's Guide
Copyright © 2011 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system,
or transmied in any form or by any means, without the prior wrien permission of the
publisher, except in the case of brief quotaons embedded in crical arcles or reviews.
Every eort has been made in the preparaon of this book to ensure the accuracy of the
informaon presented. However, the informaon contained in this book is sold without
warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers
and distributors will be held liable for any damages caused or alleged to be caused directly or
indirectly by this book.
Packt Publishing has endeavored to provide trademark informaon about all of the
companies and products menoned in this book by the appropriate use of capitals.
However, Packt Publishing cannot guarantee the accuracy of this informaon.
First published: September 2011
Producon Reference: 1160911
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-849515-36-8
www.packtpub.com
Cover Image by Asher Wishkerman (a.wishkerman@mpic.de)
Credits
Author
Andrew Lunny
Reviewers
Paul McCrodden
Andrey Rebrov
Acquision Editor
Usha Iyer
Development Editor
Meeta Rajani
Technical Editors
Pallavi Kachare
Priyanka Shah
Project Coordinator
Joel Goveya
Proofreader
Aaron Nash
Indexer
Hemangini Bari
Producon Coordinator
Aparna Bhagat
Cover Work
Aparna Bhagat
About the Author
Andrew Lunny is a soware developer based in Vancouver, BC, where he is "Chief N00b"
at Nitobi Soware. He has worked at Nitobi for four years, since a brutal shark aack cut
short his promising career as a surfer. He is the lead developer and all-around fall guy for
the PhoneGap Build web service, a member of the PhoneGap team, and has over 10 years'
experience with PhoneGap and related technologies. He is fond of Ruby, JavaScript, Unix, Git,
and the Internet.
Nitobi is a soware company run by Andre Charland, Dave Johnson, and Brian Leroux. They
specialize in cross-plaorm mobile development and design, and sponsor the PhoneGap
open source project.
In his spare me, Andrew enjoys cycling, running, walking, and jumping. He has two
unrelated degrees from the University of Brish Columbia.
Thanks to Tammy, to my parents, and to Hugo and Natasha for pung
up with me while I procrasnated along. Thanks to Michael Brooks for
running a Windows VM so I did not have to, and thanks to all of my other
co-workers for working on such a great open source project. Thank you to
everyone who follows me on Twier.
Finally, thanks to all my old surng buddies—Skip, Dingo, even Jelly! I'll get
back on the waves with you guys some me, I promise.