Thank you for visiting us. We are currently updating our shopping cart and regret to advise that it will be unavailable until September 1, 2014. We apologise for any inconvenience and look forward to serving you again.

Wiley
Wiley.com
Print this page Share

Beginning PhoneGap

ISBN: 978-1-118-15665-0
384 pages
December 2011
Beginning PhoneGap (111815665X) cover image
Create cross-platform mobile apps without having to learn a new language!

PhoneGap is an open source solution, ideal for web developers wanting to build cross-platform mobile apps without having to learn a new language. Using HTML, CSS, and Javascript, PhoneGap allows you to jump into the mobile world and develop apps for iPhone, Android, and the BlackBerry.

  • Walks you through installing the development software
  • Covers the basics of each of PhoneGap's functional units
  • Introduces various projects you can build with the framework
  • Discusses using HTML, CSS, JavaScript
  • Explores the features accelerameter and compass
  • Examines media, storage and files, camera, contacts, geolocation, and more

Within Beginning PhoneGap, each new chapter builds on the lessons taught in the previous so that by the end of the book, you can have mobile apps up and running!

"NOTE: Several significant changes to the PhoneGap software occurred shortly after this book was published. The author has written extra pages to address these and other changes. You can download the updates to this book from the book's support page on the Wrox website." 

See More
INTRODUCTION xix

CHAPTER 1: INTRODUCING PHONEGAP 1

CHAPTER 2: INSTALLING AND CONFIGURING PHONEGAP 17

CHAPTER 3: BASIC WALKTHROUGH 31

CHAPTER 4: EVENTS 45

CHAPTER 5: WORKING WITH THE DEVICE, THE NETWORK, AND NOTIFICATIONS 59

CHAPTER 6: ACCELEROMETER 73

CHAPTER 7: COMPASS 85

CHAPTER 8: GEOLOCATION 99

CHAPTER 9: MEDIA 113

CHAPTER 10: CAMERA 129

CHAPTER 11: STORAGE 143

CHAPTER 12: FILES 157

CHAPTER 13: CONTACTS 179

CHAPTER 14: CAPTURE 189

CHAPTER 15: CREATING A NOTE-TAKING APPLICATION 197

APPENDIX A: ANSWERS TO EXERCISES 213

APPENDIX B: TOOLS FOR PHONEGAP 235

APPENDIX C: PHONEGAP.JS 247

APPENDIX D: PHONEGAP PLUG-INS 333

INDEX 349

See More
Thomas Myer is a consultant, author, and speaker. He owns Triple Dog Dare Media and specializes in Linux- and Mac-based development, including iPhone apps, CMS, blogs, wikis, dashboard widgets, UNIX systems, and Applescripting. He is the author of several books, including Professional CodeIgniter, Apple Automator with AppleScript, and Mac OS X UNIX Toolbox, among others.
See More
Download TitleSizeDownload
Read Me 688 bytes Click to Download
Updates for PhoneGap 1.1 and 1.2
The Beginning PhoneGap book was mostly written while PhoneGap 0.9.6 was the current version. By the time the book was in review, we made alterations for the 1.0 release, but while the book was being printed, Nitobi releases 1.1 and 1.2. Just recently, PhoneGap released version 1.3, with further support for Windows Phone 7 and BlackBerry development on the Mac.

Needless to say, there have been more than minor changes to the code and approaches to development with PhoneGap. In some cases, functions/methods have been deprecated, others have been added, and support for different mobile devices/operating systems added or removed.

This document is a catalog of those changes as of January 2012.
84.50 KB Click to Download
Chapter 4 460 bytes Click to Download
Chapter 5A 639 bytes Click to Download
Chapter 5B 599 bytes Click to Download
Chapter 5C 900 bytes Click to Download
Chapter 6 795 bytes Click to Download
Chapter 7 721 bytes Click to Download
Chapter 8 686 bytes Click to Download
Chapter 9A 930 bytes Click to Download
Chapter 9B 659 bytes Click to Download
Chapter 10A 653 bytes Click to Download
Chapter 10B 680 bytes Click to Download
Chapter 11A 868 bytes Click to Download
Chapter 11B 578 bytes Click to Download
Chapter 11C 576 bytes Click to Download
Chapter 12 902 bytes Click to Download
Chapter 13 718 bytes Click to Download
See More

Do you think you've discovered an error in this book? Please check the list of errata below to see if we've already addressed the error. If not, please submit the error via our Errata Form. We will attempt to verify your error; if you're right, we will post a correction below.

ChapterPageDetailsDatePrint Run
Updates for PhoneGap 1.1 and 1.2
The Beginning PhoneGap book was mostly written while PhoneGap 0.9.6 was the current version. By the time the book was in review, we made alterations for the 1.0 release, but while the book was being printed, Nitobi releases 1.1 and 1.2. Just recently, PhoneGap released version 1.3, with further support for Windows Phone 7 and BlackBerry development on the Mac.

Needless to say, there have been more than minor changes to the code and approaches to development with PhoneGap. In some cases, functions/methods have been deprecated, others have been added, and support for different mobile devices/operating systems added or removed.

Please find a document with updates on the 'Downloads' tab on the book's site at http://www.wrox.com/WileyCDA/WroxTitle/Beginning-PhoneGap.productCd-111815665X,descCd-DOWNLOAD.html . This document is a catalog of those changes as of January 2012.
1/12/12
21 Error in Text
There is a missing step when setting up PhoneGap for Android on Windows Eclipse (pg.21). It should have this added (from phonegap wiki)...(You might experience an error here, where Eclipse can't find phonegap-1.0.0.jar. In this case, right click on the /libs folder and go to Build Paths/ > Configure Build Paths. Then, in the Libraries tab, add phonegap-1.0.0.jar to the Project. If Eclipse is being temperamental, you might need to refresh (F5) the project once again.)
1/4/2012
150, 151 Error in Code
Try It Out for ?Building a Simple Database?
Page 150 (line 16 of code), page 151 (line 4 of page)

Currently reads: errorCB
Should read: errorDB
02/10/2012
See More
Back to Top