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
The author maintains a web site for the book at cordovaprogramming.com where updates, errata, and the source code for the book are available.
He is the author of the popular introduction to PhoneGap, PhoneGap Essentials, as well as BlackBerry Development Fundamentals, the first book dedicated to BlackBerry development (both from Addison-Wesley). You can find information about all of John’s publications at johnwargobooks.com. You can also find articles related to mobile development and other topics that interest John at his personal blog at johnwargo.com. He also periodically publishes articles on mobile development tools to his SAP Community Network (SCN) blog at scn.sap.com/blogs/johnwargo.
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 includeAccelerometers, 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.
This is the eBook of the printed book and may not include any media, website access codes, or print supplements that may come packaged with the bound book.Android Programming: The Big Nerd Ranch Guide, 3/e is an introductory Android book for programmers with Java experience.
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 includesThe 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.
Highlights of this new Fourth Edition includeExtensive new coverage: Android 5 (Lollipop), Android Studio, and Material Design; plus Android M early preview A laser focus on modern Android essentials, including activities, intents, resources, and background processing New Android 5 features for Android TV and Android Wear Complete Android Studio projects in nearly every chapter
Learn how to…Use the powerful new Android Studio development environment Build layouts that automatically display properly on any device Craft more dynamic, intuitive apps with Google’s new material design language Display the right information at the right time with ListViews and adapters Make apps more responsive with background processes Add sophisticated navigation with action toolbars and slide-out menus Integrate images and media into your apps Save data for your app and create public files that can be used by anyone Access the cloud to download and parse JSON data Use SQLite and content providers to create responsive, data-driven apps Create, update, and cancel notifications Start developing Android Wearable and TV apps Use Google Play Services to add location, mapping, and more Package and publish apps to Google Play and other markets
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 includesThe “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