Apache Cordova API Cookbook

Addison-Wesley Professional
Free sample

Using Apache Cordova, mobile developers can write cross-platform mobile apps using standard HTML5, JavaScript, and CSS, and then deploy those apps to every leading mobile platform with little or no re-coding. Apache Cordova API Cookbook provides experienced mobile developers with details about how each Cordova API works and how to use the APIs in their own applications. Coverage is included for all Cordova/PhoneGap 3 APIs.

Instead of just showing short snippets of code to explain a particular API, this guide is chock full of complete examples. You’ll find more than thirty complete Cordova applications that work on Android, iOS, Windows, and more. The sample applications demonstrate exactly what each API does and how it works, while the chapter content describes the limitations on the leading target platforms (and even offers possible workarounds).

Through realistic “cookbook” example code, mobile developer John Wargo helps you master the Cordova APIs and understand how to use them in your Cordova applications.

Topics include

  • Accelerometers, compass, and geolocation
  • Image, video, and audio–capture, playback, and management
  • Determining connection and device information
  • Interacting with the Contacts application
  • Responding to application events
  • Accessing the device file system
  • Globalizing apps
  • Using the InAppBrowser
  • Notifications
  • Custom splash screens

Special care has been taken to make the code easily readable and digestible by the reader. This guide provides the most accessible coverage, anywhere, of Apache Cordova APIs.

Read more

About the author

John M. Wargo has more than twenty years of experience designing and developing enterprise applications with a focus on collaboration and process automation. He has spent the last five years focusing on mobile development and is the author of BlackBerry Development Fundamentals, PhoneGap Essentials, and Apache Cordova 3 Programming (all from Addison-Wesley). He is currently a Product Manager at SAP, focusing on the SAP Mobile Platform. He is the Product Manager for the Kapsel SDK, SAP’s suite of enterprise plugins for Apache Cordova and the SAP Fiori Client, a Cordova application available today in the Android and iOS app stores. John's personal blog can be found at www.johnwargo.com.

Read more

Reviews

Loading...

Additional Information

Publisher
Addison-Wesley Professional
Read more
Published on
Jun 24, 2014
Read more
Pages
320
Read more
ISBN
9780133838596
Read more
Features
Read more
Read more
Language
English
Read more
Genres
Computers / Data Transmission Systems / Wireless
Computers / Programming / Mobile Devices
Read more
Content Protection
This content is DRM protected.
Read more
Eligible for Family Library

Reading information

Smartphones and Tablets

Install the Google Play Books app for Android and iPad/iPhone. It syncs automatically with your account and allows you to read online or offline wherever you are.

Laptops and Computers

You can read books purchased on Google Play using your computer's web browser.

eReaders and other devices

To read on e-ink devices like the Sony eReader or Barnes & Noble Nook, you'll need to download a file and transfer it to your device. Please follow the detailed Help center instructions to transfer the files to supported eReaders.
John M. Wargo

Covers PhoneGap 3.X


Written for experienced mobile developers, Apache Cordova 3 Programming is a complete introduction to Apache Cordova 3 and Adobe PhoneGap 3. It describes what makes Cordova important and shows how to install and use the tools, the new Cordova CLI, the native SDKs, and more. If you’re brand new to Cordova, this book will be just what you need to get started. If you’re familiar with an older version of Cordova, this book will show you in detail how to use all of the new stuff that’s in Cordova 3 plus stuff that has been around for a while (like the Cordova core APIs).


After walking you through the process of downloading and setting up the framework, mobile expert John M. Wargo shows you how to install and use the command line tools to manage the Cordova application lifecycle and how to set up and use development environments for several of the more popular Cordova supported mobile device platforms. Of special interest to new developers are the chapters on the anatomy of a Cordova application, as well as the mechanics of Cordova development. Wargo also covers the development process and the tools you can use to test and debug your Cordova applications, and provides a complete chapter that introduces the Cordova APIs, in addition to a chapter that shows you how to create your own plugins.


Filled with lots of examples and code, the book includes includes complete coverage of Android, iOS, BlackBerry 1,0 and Windows Phone development for Cordova.


Topics covered include

How to install and use the Cordova CLI and associated tools How to configure the Android developer tools (ADT) to run, test, and debug your Cordova applications for Android How to use Xcode—Apple’s development tool for iOS development—to run, test, and debug Cordova applications for iOS devices How to use the Safari browser to debug Cordova applications on iOS devices How to use the Microsoft development tools to run, test, and debug Cordova applications for Windows Phone 8 How to set up and use the PhoneGap Build service to package Cordova applications and share those applications with others How to create Cordova plugins for both Android and iOS


The author maintains a web site for the book at cordovaprogramming.com where updates, errata, and the source code for the book are available.

Martin Fowler
The practice of enterprise application development has benefited from the emergence of many new enabling technologies. Multi-tiered object-oriented platforms, such as Java and .NET, have become commonplace. These new tools and technologies are capable of building powerful applications, but they are not easily implemented. Common failures in enterprise applications often occur because their developers do not understand the architectural lessons that experienced object developers have learned.

Patterns of Enterprise Application Architecture is written in direct response to the stiff challenges that face enterprise application developers. The author, noted object-oriented designer Martin Fowler, noticed that despite changes in technology--from Smalltalk to CORBA to Java to .NET--the same basic design ideas can be adapted and applied to solve common problems. With the help of an expert group of contributors, Martin distills over forty recurring solutions into patterns. The result is an indispensable handbook of solutions that are applicable to any enterprise application platform.

This book is actually two books in one. The first section is a short tutorial on developing enterprise applications, which you can read from start to finish to understand the scope of the book's lessons. The next section, the bulk of the book, is a detailed reference to the patterns themselves. Each pattern provides usage and implementation information, as well as detailed code examples in Java or C#. The entire book is also richly illustrated with UML diagrams to further explain the concepts.

Armed with this book, you will have the knowledge necessary to make important architectural decisions about building an enterprise application and the proven patterns for use when building them.

The topics covered include

· Dividing an enterprise application into layers

· The major approaches to organizing business logic

· An in-depth treatment of mapping between objects and relational databases

· Using Model-View-Controller to organize a Web presentation

· Handling concurrency for data that spans multiple transactions

· Designing distributed object interfaces

John M. Wargo
PhoneGap is Adobe’s distribution of the free and open source framework (originally developed by Nitobi) that is now also available from the Apache Foundation as Apache Cordova™. Using PhoneGap, developers can build native mobile apps using standard HTML5, JavaScript, and CSS, and then deploy those apps to every leading mobile platform with little or no recoding. Up to now, though, PhoneGap was lacking complete, practical documentation. PhoneGap Essentials fills that void: It’s the first concise, yet complete, tutorial for succeeding with PhoneGap in real-world development.

Experienced mobile developer John M. Wargo thoroughly introduces the PhoneGap platform, explaining what it is, what it does, and how it works. He then guides you through configuring PhoneGap environments—creating complete mobile apps—and building them for the Google Android™, Samsung bada, BlackBerry® devices, Apple® iOS, Symbian™ OS, and Windows® Phone. Through realistic examples, you’ll master key PhoneGap APIs for everything from GPS to the file system, contacts to camera, device to events, and more. Wargo also demonstrates how to take full advantage of PhoneGap Build, PhoneGap’s cloud-based packaging utility.

Coverage includes

The anatomy of a PhoneGap application (what makes an application a PhoneGap application) Understanding the impact of cross-platform development issues Exploring the entire PhoneGap development process, including testing and debugging Expanding PhoneGap’s capabilities with third-party development tools and plug-ins Building cross-platform apps that use the device camera, compass, accelerometer, and other hardware Reading from and writing to the contacts database and the device file system Installing tools needed to develop PhoneGap apps for Android, bada, BlackBerry, iOS, Symbian, and Windows Phone Reacting to events and notifying users Using the Media API to record and play media files Building for multiple platforms simultaneously using PhoneGap Build

About the Website

Downloadable code projects, additional information, and errata are available at phonegapessentials.com.
John M. Wargo
The BlackBerry smartphone is today’s #1 mobile platform for the enterprise and also a huge hit with consumers. Until now, it’s been difficult for programmers to find everything they need to begin developing new applications for BlackBerry devices. BlackBerry Development Fundamentals is the solution: the first single-source guide to all aspects of development for the BlackBerry platform.

This book thoroughly reviews the BlackBerry’s unique capabilities and limitations, helps you optimize your upfront design choices, and covers native rich-client applications and Web-based mobile applications for both business and consumer environments. In addition, it is an excellent study guide for the BlackBerry Certified Application Developer exam (BCX-810).

Coverage includes

The “hows,” “whys,” and best practices of BlackBerry development Planning for and managing the BlackBerry platform’s restrictions Selecting the correct development platform for your BlackBerry applications Describing the different paths any application can take to get to the data it needs Explaining the capabilities provided by the BlackBerry Mobile Data System (MDS) Pushing application data to both enterprise and consumer BlackBerry devices using MDS, Web Signals, and the BlackBerry Push APIs Dealing with both the special capabilities and limitations of the BlackBerry browser Building, testing, and debugging BlackBerry browser applications Understanding the tools available to Java developers Using Research In Motion’s Java development tools to build, test, and debug BlackBerry Java applications Deploying BlackBerry Java applications
John M. Wargo
PhoneGap is Adobe’s distribution of the free and open source framework (originally developed by Nitobi) that is now also available from the Apache Foundation as Apache Cordova™. Using PhoneGap, developers can build native mobile apps using standard HTML5, JavaScript, and CSS, and then deploy those apps to every leading mobile platform with little or no recoding. Up to now, though, PhoneGap was lacking complete, practical documentation. PhoneGap Essentials fills that void: It’s the first concise, yet complete, tutorial for succeeding with PhoneGap in real-world development.

Experienced mobile developer John M. Wargo thoroughly introduces the PhoneGap platform, explaining what it is, what it does, and how it works. He then guides you through configuring PhoneGap environments—creating complete mobile apps—and building them for the Google Android™, Samsung bada, BlackBerry® devices, Apple® iOS, Symbian™ OS, and Windows® Phone. Through realistic examples, you’ll master key PhoneGap APIs for everything from GPS to the file system, contacts to camera, device to events, and more. Wargo also demonstrates how to take full advantage of PhoneGap Build, PhoneGap’s cloud-based packaging utility.

Coverage includes

The anatomy of a PhoneGap application (what makes an application a PhoneGap application) Understanding the impact of cross-platform development issues Exploring the entire PhoneGap development process, including testing and debugging Expanding PhoneGap’s capabilities with third-party development tools and plug-ins Building cross-platform apps that use the device camera, compass, accelerometer, and other hardware Reading from and writing to the contacts database and the device file system Installing tools needed to develop PhoneGap apps for Android, bada, BlackBerry, iOS, Symbian, and Windows Phone Reacting to events and notifying users Using the Media API to record and play media files Building for multiple platforms simultaneously using PhoneGap Build

About the Website

Downloadable code projects, additional information, and errata are available at phonegapessentials.com.
John M. Wargo
Using Apache Cordova 4, you can leverage native technologies and web standards to quickly build cross-platform apps for most mobile devices. You can deliver a high-end user experience where it matters, while radically simplifying code maintenance and reuse. Apache Cordova 4 Programming is the most concise, accessible introduction to this remarkable technology.

In this essential guide, expert mobile developer John Wargo quickly gets you up to speed with all the essentials, from installation, configuration, and tools, to building plugins and using Cordova’s powerful APIs. Wargo helps you make the most of Cordova 4’s major enhancements, while offering practical guidance for all versions, including Adobe PhoneGap. Full chapters are dedicated to five major mobile platforms: Android, iOS, Windows Phone, Firefox OS, and Ubuntu.

Using rich, relevant examples, Wargo guides you through both the anatomy of a Cordova app and its entire lifecycle, including cross-platform testing and debugging. Throughout, he illuminates Cordova development best practices, streamlining your development process and helping you write high-quality apps right from the start.

Topics include

Installing and configuring Cordova’s development environment Working with the Cordova command line interfaces Creating Cordova plugins, using Plugman and the PhoneGap CLI Cordova’s support for Firefox OS and Ubuntu devices Automation (Grunt and Gulp) and Cordova CLI hooks Microsoft’s hybrid toolkit for Visual Studio Third-party tools, such as AppGyver, GapDebug, THyM, and more Beautifying Cordova apps with third-party HTML frameworks, such as Bootstrap, OpenUI5, Ionic, and Onsen UI Running, testing, and debugging Cordova apps on each major mobile platform

Access the full code examples at cordova4programming.com, where you’ll also find updates reflecting Cordova’s continuing evolution.

This book is an ideal companion to Wargo’s authoritative collection of Apache Cordova code recipes for each Cordova API, Apache Cordova API Cookbook (Addison-Wesley, 2015).

John M. Wargo

Covers PhoneGap 3.X


Written for experienced mobile developers, Apache Cordova 3 Programming is a complete introduction to Apache Cordova 3 and Adobe PhoneGap 3. It describes what makes Cordova important and shows how to install and use the tools, the new Cordova CLI, the native SDKs, and more. If you’re brand new to Cordova, this book will be just what you need to get started. If you’re familiar with an older version of Cordova, this book will show you in detail how to use all of the new stuff that’s in Cordova 3 plus stuff that has been around for a while (like the Cordova core APIs).


After walking you through the process of downloading and setting up the framework, mobile expert John M. Wargo shows you how to install and use the command line tools to manage the Cordova application lifecycle and how to set up and use development environments for several of the more popular Cordova supported mobile device platforms. Of special interest to new developers are the chapters on the anatomy of a Cordova application, as well as the mechanics of Cordova development. Wargo also covers the development process and the tools you can use to test and debug your Cordova applications, and provides a complete chapter that introduces the Cordova APIs, in addition to a chapter that shows you how to create your own plugins.


Filled with lots of examples and code, the book includes includes complete coverage of Android, iOS, BlackBerry 1,0 and Windows Phone development for Cordova.


Topics covered include

How to install and use the Cordova CLI and associated tools How to configure the Android developer tools (ADT) to run, test, and debug your Cordova applications for Android How to use Xcode—Apple’s development tool for iOS development—to run, test, and debug Cordova applications for iOS devices How to use the Safari browser to debug Cordova applications on iOS devices How to use the Microsoft development tools to run, test, and debug Cordova applications for Windows Phone 8 How to set up and use the PhoneGap Build service to package Cordova applications and share those applications with others How to create Cordova plugins for both Android and iOS


The author maintains a web site for the book at cordovaprogramming.com where updates, errata, and the source code for the book are available.

©2018 GoogleSite Terms of ServicePrivacyDevelopersArtistsAbout Google
By purchasing this item, you are transacting with Google Payments and agreeing to the Google Payments Terms of Service and Privacy Notice.