PhoneGap Mobile Application Development Cookbook


PhoneGap Mobile Application Development Cookbook
eBook: $26.99
Formats: PDF, PacktLib, ePub and Mobi formats
$22.94
save 15%!
Print + free eBook + free PacktLib access to the book: $71.98    Print cover: $44.99
$44.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • Use the PhoneGap API to create native mobile applications that work on a wide range of mobile devices
  • Discover the native device features and functions you can access and include within your applications
  • Packed with clear and concise examples to show you how to easily build native mobile applications

Book Details

Language : English
Paperback : 320 pages [ 235mm x 191mm ]
Release Date : October 2012
ISBN : 1849518580
ISBN 13 : 9781849518581
Author(s) : Matt Gifford
Topics and Technologies : All Books, Mobile Application Development, Mobile, Cookbooks, Open Source

Table of Contents

Preface
Chapter 1: Movement and Location: Using the Accelerometer and Geolocation Sensors
Chapter 2: File System, Storage, and Local Databases
Chapter 3: Working with Audio, Images, and Video
Chapter 4: Working with Your Contacts
Chapter 5: Hook into Native Events
Chapter 6: Working with XUI
Chapter 7: User Interface Development with jQuery Mobile
Chapter 8: Extending PhoneGap with Plugins
Chapter 9: Development Tools and Testing
Index
  • Chapter 1: Movement and Location: Using the Accelerometer and Geolocation Sensors
    • Introduction
    • Detecting device movement using the accelerometer
    • Adjusting the accelerometer sensor update interval
    • Updating a display object position through accelerometer events
    • Obtaining device geolocation sensor information
    • Adjusting the geolocation sensor update interval
    • Retrieving map data through geolocation coordinates
    • Creating a visual compass to show the devices direction
    • Chapter 2: File System, Storage, and Local Databases
      • Introduction
      • Saving a file to device storage
      • Opening a local file from device storage
      • Displaying the contents of a directory
      • Creating a local SQLite database
      • Uploading a file to a remote server
      • Caching content using the web storage local storage API
      • Chapter 3: Working with Audio, Images, and Video
        • Introduction
        • Capturing audio using the devices audio recording application
        • Recording audio within your application
        • Playing audio files from the local filesystem or over HTTP
        • Capturing video using the devices video recording application
        • Loading a photograph from the devices camera roll/library
        • Applying an effect to an image using canvas
          • Chapter 5: Hook into Native Events
            • Introduction
            • Pausing your application
            • Resuming your application
            • Displaying the status of the device battery levels
            • Making use of the native search button
            • Displaying network connection status
            • Creating a custom submenu
            • Chapter 6: Working with XUI
              • Introduction
              • Learning the basics of the XUI library
              • DOM manipulation
              • Working with touch and gesture events
              • Updating element styles
              • Working with remote data and AJAX requests
              • Animating an element
                  • Chapter 9: Development Tools and Testing
                    • Introduction
                    • Downloading Cordova
                    • Using the command line to create a new iOS Cordova project
                    • Using Xcode templates for iOS to develop Cordova applications
                    • Using Eclipse to develop Android Cordova applications
                    • Controlling your Android Virtual Device
                    • Using Adobe Dreamweaver to develop Cordova applications
                    • Using the PhoneGap Build service

                    Matt Gifford

                    Matt Gifford is an RIA developer from Cambridge, England, who specializes in ColdFusion, web application, and mobile development. With over ten years industry experience across various sectors, Matt is owner of Monkeh Works Ltd. (www.monkehworks.com). A regular presenter at national and international conferences, he also contributes articles and tutorials in leading international industry magazines, as well as publishing on his blog (www.mattgifford.co.uk). As an Adobe Community Professional for ColdFusion, Matt is an advocate of community resources and industry-wide knowledge sharing, with a focus on encouraging the next generation of industry professionals. Matt is the author of Object-Oriented Programming in ColdFusion and numerous open source applications, including the popular monkehTweets twitter API wrapper.
                    Sorry, we don't have any reviews for this title yet.

                    Code Downloads

                    Download the code and support files for this book.


                    Submit Errata

                    Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


                    Errata

                    - 1 submitted: last submission 28 Dec 2012

                    On Page 8, in the About the Author section, the author would like to include the following vote of thanks:

                    "Thanks also to the team at Packt Publishing, and the technical reviewers, whose patience and guidance made writing this book a pleasure.

                    Finally, thanks to my wonderfully supportive family, who accepted "I've got to write this chapter" as a viable excuse…for everything. You've been very "bearzley". Now, let's go to the park!"

                    Sample chapters

                    You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                    Frequently bought together

                    PhoneGap Mobile Application Development Cookbook +    MDX with Microsoft SQL Server 2008 R2 Analysis Services Cookbook =
                    50% Off
                    the second eBook
                    Price for both: £24.65

                    Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                    What you will learn from this book

                    • Build your application to interact with real-time sensor data
                    • Learn how to store data and cache data and content using HTML5 storage APIs
                    • Access the camera of the device to create a seamless multimedia workflow
                    • Set up your PhoneGap mobile development environment
                    • Think mobile: develop with size in mind using lightweight JavaScript frameworks
                    • Access the contact database of your device
                    • Enhance your application by creating custom plugins built using custom native code
                    • Use HTML5 and CSS3 in your mobile applications

                    In Detail

                    As more and more of our online life and daily activities evolve into the mobile landscape it has never been of more importance to start venturing into the world of mobile applications.
                     
                    With PhoneGap, you can put your existing development skills and HTML, CSS, and JavaScript knowledge to great use by creating mobile apps for cross-platform devices.

                    "PhoneGap Mobile Application Development Cookbook" will show you how to create native mobile applications for multiple device platforms using the PhoneGap API. You will learn to build dynamic applications that interact with the native functionality on the device to create a rich, interactive experience for your users.

                    This is a cookbook with each section written as a recipe in an informal, friendly style. Each recipe contains the complete code needed to build your applications, and plenty of screenshots showing the completed projects running on devices are included to assist you.

                    "PhoneGap Mobile Application Development Cookbook" will introduce the PhoneGap API to you in clear, concise sections, breaking down each recipe to achieve realistic working projects that can be applied to your own mobile applications.

                    You will be shown how to use the mobile development framework to build applications that can be deployed and run on multiple mobile platforms including iOS, Android, and BlackBerry.

                    This book will explore the various methods and functions available using the API, and how to write code that interacts with the native functions, including geolocation sensors, contacts database, and native button events of the device to create powerful applications ready for the market place.

                    "PhoneGap Mobile Application Development Cookbook" will help you break into the world of mobile application development. Build mobile applications in code you’re comfortable with, create a richer user experience for your users and become part of the ever-growing mobile market place.

                    Approach

                    This cookbook consists of recipes with plenty of example code and is full of screenshots to make the learning curve easier and quicker.

                    Who this book is for

                    This book is for creative professionals, ideally with web development experience, who are interested in building applications for the emerging mobile market but do not want to learn a new SDK for every phone on the shelf. You should be comfortable with JavaScript, HTML, and CSS, and interested in learning the new advances in those technologies that allow for rich, native-style experiences. This book supports a beginner to advanced level of PhoneGap.

                    Code Download and Errata
                    Packt Anytime, Anywhere
                    Register Books
                    Print Upgrades
                    eBook Downloads
                    Video Support
                    Contact Us
                    Awards Voting Nominations Previous Winners
                    Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                    Resources
                    Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software