O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Instant PhoneGap

Book Description

Begin your journey of building amazing mobile applications using PhoneGap with the geolocation API

In Detail

PhoneGap is a mobile development framework. Building applications for each device?iPhone, Android, Windows Mobile and more?requires different frameworks and languages. PhoneGap solves this by using standards-based web technologies to bridge web applications and mobile devices. Since PhoneGap apps are standards-compliant, they're future-proofed to work with browsers as they evolve.

PhoneGap allows you to use standard web technologies such as HTML5, CSS3, and JavaScript for cross-platform development, avoiding each mobile platform's native development environment. The resulting applications are hybrid, meaning that they are neither truly native nor purely web-based. The book will start with the basics of PhoneGap and will enable you to create an application in PhoneGap and submit it to different app stores such as Android and iOS.

PhoneGap is a web-based mobile development framework, based on the open source Cordova project. You will learn the basics of PhoneGap, get started with building your first app, and gradually work on complex tasks like building and improving the CSS defining the app style, font, colors, and views using jQuery themes. You will learn to edit the index.html file to include the correct JavaScript. You will use the PhoneGap geolocation API to locate restaurants on a map and monitor your current position. Finally, you will review your code, get the certificates from the OS you want to deploy your app, and build it using PhoneGap Build.

What You Will Learn

  • Set up your PhoneGap development environment
  • Use the geolocation API programming interface
  • Read an XML file with your app information
  • Build a simple but powerful CSS file
  • Develop mobile apps using HTML5, JS, and CSS
  • Use the Google Maps Application programming interface
  • Read an XML file using JavaScript
  • Create a hybrid app using PhoneGap