0%

Book Description

With your JavaScript, HTML, and CSS skills, you just need to add PhoneGap to start creating native mobile apps for cross-platform devices. The 40+ recipes in this book will show you how, speedily and practically.

  • 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

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.

Table of Contents

  1. PhoneGap Mobile Application Development Cookbook
    1. Table of Contents
    2. PhoneGap Mobile Application Development Cookbook
    3. Credits
    4. Foreword
    5. About the Author
    6. About the Reviewers
    7. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    8. Preface
      1. PhoneGap or Cordova
      2. Help is at hand
      3. What this book covers
      4. What you need for this book
      5. Who this book is for
      6. Conventions
      7. Reader feedback
      8. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    9. 1. Movement and Location: Using the Accelerometer and Geolocation Sensors
      1. Introduction
      2. Detecting device movement using the accelerometer
        1. How to do it...
        2. How it works...
        3. There's more...
      3. Adjusting the accelerometer sensor update interval
        1. How to do it...
        2. How it works...
        3. There's more...
      4. Updating a display object position through accelerometer events
        1. How to do it...
        2. How it works...
        3. See also
      5. Obtaining device geolocation sensor information
        1. How to do it...
        2. How it works...
        3. There's more...
      6. Adjusting the geolocation sensor update interval
        1. How to do it...
        2. How it works...
        3. There's more...
          1. Clearing the interval
        4. See also
      7. Retrieving map data through geolocation coordinates
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Static maps
      8. Creating a visual compass to show the devices direction
        1. How to do it...
        2. How it works...
        3. See also
    10. 2. File System, Storage, and Local Databases
      1. Introduction
      2. Saving a file to device storage
        1. How to do it...
        2. How it works...
        3. There's more...
          1. Domain whitelist
        4. See also
      3. Opening a local file from device storage
        1. How to do it...
        2. How it works...
        3. There's more...
        4. See also
      4. Displaying the contents of a directory
        1. How to do it...
        2. How it works...
        3. See also
      5. Creating a local SQLite database
        1. How to do it...
        2. How it works...
        3. There's more...
        4. See also
      6. Uploading a file to a remote server
        1. How to do it...
        2. How it works...
        3. See also
      7. Caching content using the web storage local storage API
        1. How to do it...
        2. How it works...
        3. There's more...
    11. 3. Working with Audio, Images, and Video
      1. Introduction
      2. Capturing audio using the devices audio recording application
        1. How to do it...
        2. How it works...
        3. See also
      3. Recording audio within your application
        1. How to do it...
        2. How it works...
        3. See also
      4. Playing audio files from the local filesystem or over HTTP
        1. How to do it...
        2. How it works...
        3. There's more...
      5. Capturing video using the devices video recording application
        1. How to do it...
        2. How it works...
      6. Loading a photograph from the devices camera roll/library
        1. How to do it...
        2. How it works...
        3. There's more...
        4. See also
      7. Applying an effect to an image using canvas
        1. How to do it...
        2. How it works...
        3. There's more...
    12. 4. Working with Your Contacts
      1. Introduction
      2. Listing all available contacts
        1. How to do it...
        2. How it works...
        3. There's more…
        4. See also
      3. Displaying contact information for a specific individual
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      4. Creating and saving a new contact
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Go a little further…
    13. 5. Hook into Native Events
      1. Introduction
      2. Pausing your application
        1. How to do it...
        2. How it works...
        3. There's more...
      3. Resuming your application
        1. How to do it...
        2. How it works...
        3. See also
      4. Displaying the status of the device battery levels
        1. How to do it...
        2. How it works...
        3. There's more...
      5. Making use of the native search button
        1. How to do it...
        2. How it works...
        3. There's more...
      6. Displaying network connection status
        1. How to do it...
        2. How it works...
        3. There's more...
      7. Creating a custom submenu
        1. How to do it...
        2. How it works...
        3. There's more...
        4. See also
    14. 6. Working with XUI
      1. Introduction
        1. Getting ready
        2. How to do it...
      2. Learning the basics of the XUI library
        1. How to do it...
        2. How it works...
      3. DOM manipulation
        1. How to do it...
        2. How it works...
      4. Working with touch and gesture events
        1. How to do it...
        2. How it works...
      5. Updating element styles
        1. How to do it...
        2. How it works...
        3. There's more...
      6. Working with remote data and AJAX requests
        1. How to do it...
        2. How it works...
      7. Animating an element
        1. How to do it...
        2. How it works...
    15. 7. User Interface Development with jQuery Mobile
      1. Introduction
      2. Creating a jQuery Mobile layout
        1. Getting ready
        2. How to do it...
        3. How it works...
      3. Persisting data between jQuery Mobile pages
        1. How to do it...
        2. How it works...
          1. There's more...
          2. See also
      4. Using jQuery Mobile ThemeRoller
        1. How to do it...
        2. How it works...
        3. There's more...
    16. 8. Extending PhoneGap with Plugins
      1. Introduction
      2. Extending your Cordova application with a native plugin
        1. Getting ready
        2. How to do it...
        3. How it works...
      3. Extending your Cordova iOS application with a native plugin
        1. How to do it...
        2. How it works...
      4. The plugin repository
        1. How to do it...
        2. How it works...
    17. 9. Development Tools and Testing
      1. Introduction
      2. Downloading Cordova
        1. How to do it...
        2. How it works...
      3. Using the command line to create a new iOS Cordova project
        1. How to do it...
        2. How it works...
        3. There's more...
          1. Running the application on the iOS Simulator
          2. Debugging your application
      4. Using Xcode templates for iOS to develop Cordova applications
        1. How to do it...
        2. How it works...
        3. There's more…
          1. Interface layout
          2. Schemes and target devices
      5. Using Eclipse to develop Android Cordova applications
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      6. Controlling your Android Virtual Device
        1. How to do it...
        2. How it works...
      7. Using Adobe Dreamweaver to develop Cordova applications
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      8. Using the PhoneGap Build service
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Hydrating your application
          2. PhoneGap Build API
    18. Index
18.188.175.182