PhoneGap: Beginner's Guide - Third Edition

Create, develop, debug, and deploy your very own mobile applications with PhoneGap

PhoneGap: Beginner's Guide - Third Edition

This ebook is included in a Mapt subscription
Purusothaman Ramanujam, Giorgio Natili

Create, develop, debug, and deploy your very own mobile applications with PhoneGap
$35.99
$44.99
RRP $35.99
RRP $44.99
eBook
Print + eBook
Subscribe and access every Packt eBook & Video.
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Find out moreStart Free Trial
 
Code Files
Preview in Mapt

Book Details

ISBN 139781784392284
Paperback284 pages

Book Description

Given the increase in usage of mobile devices, mobile app development is in huge demand. This book provides you with the skills you need to successfully create, develop, debug, and deploy a cross-platform mobile application with PhoneGap 5. The book starts with the basics of PhoneGap, covering setting up your development environment, creating a simple project, and debugging and deploying it to your mobile devices. By sequentially working through the sections in each chapter, you will quickly get to know about the available features of various mobile frameworks and the various PhoneGap plugins you can utilize to create your apps. You will then learn how to build a hybrid application using PhoneGap. Finally, by the end of the book, you will be able to implement the most common features of modern mobile apps and build rich, native-style applications.

Table of Contents

Chapter 1: Introduction to PhoneGap
About PhoneGap
PhoneGap and Apache Cordova
Choosing an operating system for development
Mobile web versus mobile app
Installing dependencies
Installing PhoneGap
Setting up your development environment
Time for action – setting up Android using PhoneGap 3.x
Getting started with Android and JBoss
Time for action – using JBoss Developer Studio
Getting started with iOS and Xcode
Getting started with Windows Phone and Visual Studio
Summary
Chapter 2: Building Your First PhoneGap Project
The structure of a PhoneGap application
Using the PhoneGap CLI
Cordova events
Time for action – the Hello World example
WebKit debugging – Chrome, Safari, and Opera
Gecko debugging – Firefox
Internet Explorer
Debugging workflow
Building and deployment
Summary
Chapter 3: Mobile Frameworks
Building native UI for the mobile
Achieving a native look and feel on iOS
Choosing mobile frameworks
Time for action – developing with jQuery Mobile
Selecting a framework
Summary
Chapter 4: Working with Plugins
An introduction to plugins
Exploring the Device API
Time for action – accessing the Device API
Custom plugins
Summary
Chapter 5: Using Device Storage and the Files API
Application data storage
Time for action – reading and writing data on the LocalStorage
Time for action – populating a local database
Database limitations
Understanding the Files API
Time for action – listing folders
Time for action – reading and rendering an image
Time for action – downloading and saving a file
Summary
Chapter 6: Using the Contacts and Camera APIs
The Contacts API
Time for action – searching device contacts
Time for action – adding a new contact
Camera API or Capture API?
Accessing the camera using the Camera API
Time for action – accessing the device camera
Time for action – controlling the position of the camera roll
The Media Capture API
Time for action – manipulating images with a canvas
Summary
Chapter 7: Accessing the Device Sensors and Locations API
Introducing device sensors
Accelerometer
Time for action – handling device orientation with JavaScript
Compass
Time for action – using the Compass API
An introduction to geolocation
The PhoneGap Geolocation API
Time for action – showing device position with Google Maps
Summary
Chapter 8: Advanced PhoneGap
Using the Globalization API
Localizing your app
Time for action – rendering localized messages
Adding multitouch gesture support
Time for action – implementing gesture support
Handling click delays
Summary
Chapter 9: Getting Ready for Release
Exploring JavaScript compression
Time for action – compressing files using the Closure Compiler
Time for action – using UglifyJS
Time for action – optimizing JavaScript with RequireJS
Comparing compression tools
Using template engine compression
Time for action – compiling a template using Pistachio
Creating fluid, multiple app views
Using hardware-accelerated transitions
Porting web applications
Summary
Chapter 10: A Sample PhoneGap Project
What's in the app?
Creating the project
Scope for improvements
Summary

What You Will Learn

  • Get acquainted with the fundamentals of PhoneGap
  • Use HTML, CSS, and JavaScript to create, debug, and deploy your own mobile applications
  • Work with mobile-specific frameworks such as iOS and Android to design your applications
  • Install and work with all PhoneGap/Cordova plugins
  • Implement device-oriented APIs related to contacts, files, the camera, and geolocations
  • Use PhoneGap/Cordova events for accessibility
  • Enhance and optimize your application for real-time environments

Authors

Table of Contents

Chapter 1: Introduction to PhoneGap
About PhoneGap
PhoneGap and Apache Cordova
Choosing an operating system for development
Mobile web versus mobile app
Installing dependencies
Installing PhoneGap
Setting up your development environment
Time for action – setting up Android using PhoneGap 3.x
Getting started with Android and JBoss
Time for action – using JBoss Developer Studio
Getting started with iOS and Xcode
Getting started with Windows Phone and Visual Studio
Summary
Chapter 2: Building Your First PhoneGap Project
The structure of a PhoneGap application
Using the PhoneGap CLI
Cordova events
Time for action – the Hello World example
WebKit debugging – Chrome, Safari, and Opera
Gecko debugging – Firefox
Internet Explorer
Debugging workflow
Building and deployment
Summary
Chapter 3: Mobile Frameworks
Building native UI for the mobile
Achieving a native look and feel on iOS
Choosing mobile frameworks
Time for action – developing with jQuery Mobile
Selecting a framework
Summary
Chapter 4: Working with Plugins
An introduction to plugins
Exploring the Device API
Time for action – accessing the Device API
Custom plugins
Summary
Chapter 5: Using Device Storage and the Files API
Application data storage
Time for action – reading and writing data on the LocalStorage
Time for action – populating a local database
Database limitations
Understanding the Files API
Time for action – listing folders
Time for action – reading and rendering an image
Time for action – downloading and saving a file
Summary
Chapter 6: Using the Contacts and Camera APIs
The Contacts API
Time for action – searching device contacts
Time for action – adding a new contact
Camera API or Capture API?
Accessing the camera using the Camera API
Time for action – accessing the device camera
Time for action – controlling the position of the camera roll
The Media Capture API
Time for action – manipulating images with a canvas
Summary
Chapter 7: Accessing the Device Sensors and Locations API
Introducing device sensors
Accelerometer
Time for action – handling device orientation with JavaScript
Compass
Time for action – using the Compass API
An introduction to geolocation
The PhoneGap Geolocation API
Time for action – showing device position with Google Maps
Summary
Chapter 8: Advanced PhoneGap
Using the Globalization API
Localizing your app
Time for action – rendering localized messages
Adding multitouch gesture support
Time for action – implementing gesture support
Handling click delays
Summary
Chapter 9: Getting Ready for Release
Exploring JavaScript compression
Time for action – compressing files using the Closure Compiler
Time for action – using UglifyJS
Time for action – optimizing JavaScript with RequireJS
Comparing compression tools
Using template engine compression
Time for action – compiling a template using Pistachio
Creating fluid, multiple app views
Using hardware-accelerated transitions
Porting web applications
Summary
Chapter 10: A Sample PhoneGap Project
What's in the app?
Creating the project
Scope for improvements
Summary

Book Details

ISBN 139781784392284
Paperback284 pages
Read More

Read More Reviews