Contents

Foreword

Preface

Acknowledgments

1. The What, How, Why, and More of Apache Cordova

Introduction to Apache Cordova

What Is Adobe PhoneGap?

PhoneGap History

Cordova Going Forward

Supported Platforms

Cordova License

Working with Cordova

Designing for the Container

Coding Cordova Applications

Building Cordova Applications

Cordova Plugins

Putting Cordova to Best Use

Getting Support

Resources

Hybrid Application Frameworks

Wrap-Up

2. Installing the Cordova and PhoneGap Frameworks

Installing Apache Cordova

Ant-Based Command-Line Interface

Installing Adobe PhoneGap

Wrap-Up

3. Installing the Cordova Command-Line Interface

Installing the CLI

Android Development Tools

BlackBerry Development Tools

iOS Development Tools

Windows Phone Development Tools

CLI Installation

Wrap-Up

4. Using the Cordova Command-Line Interface

About the CLI

Troubleshooting the CLI

CLI Command Summary

Using the CLI

Creating a Cordova Project

Platform Management

Adding Platforms

Listing Platforms

Removing Platforms

Plugin Management

Adding Plugins

Listing Plugins

Removing Plugins

Build Management

Prepare

Compile

Build

Running Cordova Applications

Emulate

Run

Serve

Wrap-Up

5. Anatomy of a Cordova Application

Hello World!

Cordova Initialization

Leveraging Cordova APIs

Enhancing the User Interface of a Cordova Application

The Generated Web Application Files

Wrap-Up

6. The Mechanics of Cordova Development

Cordova Development Issues

Dealing with API Inconsistency

Application Graphics

Developing Cordova Applications

Working with a Single Mobile Device Platform

Working with Multiple Mobile Device Platforms

Testing Cordova Applications

Run a Cordova Application on a Device Simulator

Run a Cordova Application on a Physical Device

Leveraging Cordova Debugging Capabilities

Using Alert()

Writing to the Console

Debugging and Testing Using External Tools

Debugging Applications with Weinre

Testing Applications Using the Ripple Emulator

Wrap-Up

7. Android Development with Cordova

Working with the Android Development Tools

Using the ADT IDE

Dealing with ADT IDE Memory Problems

Editing Cordova Application Content Files

Importing the Cordova Project

Running Your Cordova Application

ADT Debugging Tools

Debugging Outside of the ADT IDE

Grabbing a Screenshot

Debugging on a Physical Device

Wrap-Up

8. BlackBerry 10 Development with Cordova

Configuring Your Environment for BlackBerry Development

Configuring a BlackBerry Cordova Project

Defining BlackBerry 10 Targets

Defining a BlackBerry 10 Simulator Target

Defining a BlackBerry 10 Device Target

Debugging on a Device Simulator

Using the BlackBerry Simulator Controller

Using the BlackBerry Web Inspector

Debugging on a Physical Device

Wrap-Up

9. iOS Development with Cordova

Working with Xcode

Debugging iOS Applications

Debugging on a Physical Device

Using the Safari Web Inspector

Wrap-Up

10. Windows Phone 8 Development with Cordova

Getting Started with Windows Phone Development

Configuring a Windows 8 Device for Application Testing

Running a Cordova Application Using Visual Studio

Wrap-Up

11. Using PhoneGap Build

What Is PhoneGap Build?

Quick Prototyping

Collaboration

Content Refresh through Hydration

Using PhoneGap Build

A Quick Example

Deploying PhoneGap Build Applications

Configuring a PhoneGap Build Application

Wrap-Up

12. Working with the Cordova APIs

The Cordova Core APIs

Working with the API Cordova Documentation

Setting Application Permissions

Cordova Objects

Connection Type

Device

Alerting the User

Hardware Notifications

Beep

Vibrate

Visual Notifications

Alert

Confirm

Prompt

Cordova Events

Hardware APIs

Accelerometer

Compass

Geolocation

Camera

Capturing Media Files

Globalization

Working with the Contacts Application

Playing/Recording Media Files

InAppBrowser

Loading Content

Browser Window Events

Execute Scripts

Insert CSS

Splash Screen

Wrap-Up

13. Creating Cordova Plugins

Anatomy of a Cordova Plugin

Creating a Simple Plugin

Creating a Native Plugin

Creating the Android Plugin

Creating the iOS Plugin

Deploying Plugins

Wrap-Up

14. Building a Cordova Application

About the Application

Creating the Application

Using Merges

Testing the Application

Wrap-Up

15. Extending Cordova to the Enterprise

Mobile Application Development Platforms

SAP Mobile Platform

Kapsel

Registration, Authentication, and Single Sign-on

Application Updates

Offline Access and Data Protection

Push Notifications

Remote Problem Analysis

Wrap-Up

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset