Skip to main content

Beginning PhoneGap

Beginning PhoneGap

Thomas Myer

ISBN: 978-1-118-15665-0

Dec 2011

384 pages

Select type: Paperback

Product not available for purchase

Description

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."" 

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

Chapter 8 Download
Chapter 5B Download
Read Me Download
Chapter 11A Download
Chapter 10B Download
Chapter 9B Download
Chapter 5C Download
Chapter 5A Download
Chapter 4 Download
Chapter 11C Download
Chapter 10A Download
Chapter 11B Download
Updates for PhoneGap 1.1 and 1.2 Download
Chapter 13 Download
Chapter 7 Download
Chapter 6 Download
Chapter 9A Download
Chapter 12 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.

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
21Error 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, 151Error 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