Who This Book Is For

If you are a mobile developer who is familiar with Phonegap basics and wants to quickly create some cool mobile applications with Phonegap, this book is for you. You should have some experience working with JavaScript, HTML, CSS, and also be able to use your operating system's command-line interface. No experience with Java, C#, or Objective C is required.

Table of Contents

Chapter 1: Your First Project

What do we build?

Installing Node.js and configuring SDKs

Installing Cordova/PhoneGap

Creating your first project

Managing your project's platforms

Managing your project's plugins

Building your project

Deploying your project to a simulator/device

Game Over..... Wrapping it up

Can you take the HEAT? The Hotshot Challenge

Chapter 2: Localization and Globalization

What do we build?

Creating the template

Creating a new project based on an existing template

Introducing the YASMF v0.4 framework

Determining the user's locale

Formatting numbers and dates

Translating text

Game Over..... Wrapping it up

Can you take the HEAT? The Hotshot Challenge

Chapter 3: Mobile Application Design

What do we build?

Designing the user interface

Designing the data model

Implementing the Base Note data model

Implementing the Note Storage model

Implementing the note list view

Implementing the text note edit view

Implementing the CSS

Putting it all together

Game Over..... Wrapping it up

Can you take the HEAT? The Hotshot Challenge

Chapter 4: The File API

What do we build?

Covering the File API

Covering Promises and Q.js

Covering YASMF's FileManager file

Changing the Note Storage model

Game Over..... Wrapping it up

Can you take the HEAT? The Hotshot Challenge

Chapter 5: Working with Audio

What do we build?

Covering the Media API

Designing the user interface

Designing the data model

Implementing the data model

Covering Hammer.js

Covering the view stack

Implementing the user interface

Putting it all together

Game Over..... Wrapping it up

Can you take the HEAT? The Hotshot Challenge

Chapter 6: Working with Still Images

What do we build?

Designing the user interface

Defining the data model

Covering the Camera API

Implementing the data model

Implementing the user interface

Putting it all together

Game Over..... Wrapping it up

Can you take the HEAT? The Hotshot Challenge

Chapter 7: Capturing Video

What do we build?

Designing the user interface

Covering the Capture API

Covering native, native-like, and non-native alerts

Implementing the data model

Implementing the user interface

Putting it all together

Game Over..... Wrapping it up

Can you take the HEAT? The Hotshot Challenge

Chapter 8: Sharing Content

What do we build?

Handling device events

Working with the sharing plugin

Modifying the text note edit view

Modifying the image note edit view

Game Over..... Wrapping it up

Can you take the HEAT? The Hotshot Challenge

Chapter 9: Devices of Different Sizes

What do we build?

What is responsive design?

Response 1 – scaling up

Response 2 – changing the layout

Response 3 – split view

Game Over..... Wrapping it up

Can you take the HEAT? The Hotshot Challenge

Chapter 10: Maps and GPS

What do we build?

Designing our app's UI and its look and feel

Exploring geolocation

Designing our data models

Loading the Google Maps API

Implementing our data models

Implementing our path edit view

Putting it all together

Game Over..... Wrapping it up

Can you take the HEAT? The Hotshot Challenge

Chapter 11: Canvas Games and the Accelerometer

What do we build?

Designing the game

Implementing the Start view

Implementing the Options view

Implementing the Game view

Generating levels

Drawing on the canvas

Performing updates

Touched-based input

Accelerometer-based input

Game Over..... Wrapping it up

Can you take the HEAT? The Hotshot Challenge

Chapter 12: Building a Backend – Working with Parse

What do we build?

Configuring Parse

Modifying the Options view

Submitting scores

Displaying scores

Modifying the Start view

Game Over..... Wrapping it up

Can you take the HEAT? The Hotshot Challenge

What You Will Learn

Explore localization and globalization

Create, save, and retrieve data using persistent device storage

Record audio using a microphone

Capture images and video using a camera

Share content to social media networks

Optimize your app for tablet-sized devices

Locate the user's device using geolocation

Interact with the accelerometer to create a fun arcade game

Use core and third-party plugins to extend PhoneGap

Look at mobile application design patterns

In Detail

PhoneGap allows you to use your existing knowledge of HTML, CSS, and JavaScript to create useful and exciting mobile applications.

This book will present you with 12 exciting projects that will introduce you to the dynamic world of app development in PhoneGap. Starting with their design and following through to their completion, you will develop real-world mobile applications. Each app uses a combination of core PhoneGap technologies, plugins, and various frameworks covering the necessary concepts you can use to create many more great apps for mobile devices.

Authors

Kerri Shotts

Kerri Shotts has worked with computers for nearly 25 years. Her love for technology and programming started when she was introduced to her first computer, which was a Commodore 64. She obtained a degree in computer science at college and eventually became a software test engineer. Later on, she worked as an Oracle Database Administrator for several years. Now, she owns her own company and works as a technology consultant. Kerri is responsible for creating, designing, and maintaining custom applications (both desktop and mobile), websites, graphics, and logos for her clients. She has been actively involved with PhoneGap for several years, and has written several native and hybrid applications. You can find her blog posts at http://www.photokandy.com. Kerri is also active on the Google Group for PhoneGap and Stack Overflow. When she isn't coding or writing, she enjoys photography, music, and fishkeeping.

Alerts & Offers

Series & Level

We understand your time is important. Uniquely amongst the major publishers, we seek to develop and publish the broadest range of learning and information products on each technology. Every Packt product delivers a specific learning pathway, broadly defined by the Series type. This structured approach enables you to select the pathway which best suits your knowledge level, learning style and task objectives.

Learning

As a new user, these step-by-step tutorial guides will give you all the practical skills necessary to become competent and efficient.

Beginner's Guide

Friendly, informal tutorials that provide a practical introduction using examples, activities, and challenges.

Essentials

Fast paced, concentrated introductions showing the quickest way to put the tool to work in the real world.

Cookbook

A collection of practical self-contained recipes that all users of the technology will find useful for building more powerful and reliable systems.

Blueprints

Guides you through the most common types of project you'll encounter, giving you end-to-end guidance on how to build your specific solution quickly and reliably.

Mastering

Take your skills to the next level with advanced tutorials that will give you confidence to master the tool's most powerful features.

Starting

Accessible to readers adopting the topic, these titles get you into the tool or technology so that you can become an effective user.

Progressing

Building on core skills you already have, these titles share solutions and expertise so you become a highly productive power user.