Buy Apache Cordova API Cookbook by John Wargo at Bookstore UAE
close menu
Bookswagon
search
My Account
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Home > Science, Technology & Agriculture > Electronics and communications engineering > Communications engineering / telecommunications > WAP (wireless) technology > Apache Cordova API Cookbook
Apache Cordova API Cookbook

Apache Cordova API Cookbook


     0     
5
4
3
2
1



Out of Stock


Notify me when this book is in stock
X
About the Book

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.

 

 



Table of Contents:

Foreword xiii

Preface xv

Acknowledgments xvii

About the Author xix

 

Chapter 1: Introduction to Apache Cordova 1

Introduction to Apache Cordova 1

Supported Platforms 5

Coding Cordova Applications 5

Configuring a Cordova Development Environment 6

Building Cordova Applications 6

Anatomy of a Cordova Application 9

Resources 15

Wrap Up 17

 

Chapter 2: Accelerometer 19

Measuring Device Orientation 20

Watching a Device’s Orientation 28

What Can Go Wrong 33

 

Chapter 3: Camera 35

Taking a Picture 36

Configuring Camera Options 44

iOS-Only Capabilities 58

What Can Go Wrong 58

 

Chapter 4: Capture 61

Using the Capture API 62

Configuring Capture Options 66

Capture in Action 66

What Can Go Wrong 77

 

Chapter 5: Compass 79

Getting the Device Heading 79

Watching the Device Heading 86

What Can Go Wrong 95

 

Chapter 6: Connection 97

Using the Connection API 97

An Example 99

What Can Go Wrong 103

 

Chapter 7: Contacts 105

Creating a Contact 106

Searching for Contacts 115

Cloning Contacts 124

Removing Contacts 124

What Can Go Wrong 124

 

Chapter 8: Device 127

Using the Device API 127

An Example 128

What Can Go Wrong 133

Chapter 9: Events 135

Managing Event Listeners 136

deviceready Event 137

Application Status Events 138

Battery Status Events 141

Button Events 144

Network Status Events 149

What Can Go Wrong 152

 

Chapter 10: File 153

Storage Locations 154

Accessing the Device’s File System 156

Reading Directory Entries 159

Accessing FileEntry and DirectoryEntry

Properties 163

Writing Files 167

Reading Files 170

Deleting Files or Directories 172

Copying Files or Directories 173

Moving Files or Directories 173

Transferring Files 174

What Can Go Wrong 179

 

Chapter 11: Geolocation 181

Getting a Device’s Current Location 182

Watching a Device’s Location 189

What Can Go Wrong 197

 

Chapter 12: Globalization 201

Example Applications 202

Using the Globalization API 204

Currency 206

Date 208

Language and Locale 217

Number 218

What Can Go Wrong 223

 

Chapter 13: InAppBrowser 225

Example Application 225

Managing an InAppBrowser Window 227

InAppBrowser Events 236

Executing Scripts in an InAppBrowser Window 237

Insert CSS 238

What Can Go Wrong 239

 

Chapter 14: Media 241

The Media Object 241

Playing Audio Files 247

Media Playback in Action 249

Recording Audio Files 259

Media Recording in Action 259

What Can Go Wrong 263

 

Chapter 15: Notification 265

Visual Alerts 266

Getting Input 269

Audible and Tactile Notifications 275

What Can Go Wrong 275

 

Chapter 16: Splashscreen 277

Using the Splashscreen API 277

Using Custom Splash Screen Images 281

What Can Go Wrong 284

 

Index 285



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.


Best Sellers


Product Details
  • ISBN-13: 9780133838589
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Addison Wesley
  • Language: English
  • Weight: 1 gr
  • ISBN-10: 0133838587
  • Publisher Date: 24 Jun 2014
  • Binding: Digital download
  • No of Pages: 320


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Apache Cordova API Cookbook
Pearson Education (US) -
Apache Cordova API Cookbook
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Apache Cordova API Cookbook

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!