0%

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

Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Table of Contents

  1. Instant PhoneGap
    1. Instant PhoneGap
    2. Credits
    3. About the Author
    4. About the Reviewers
    5. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
    6. packtlib.packtpub.com
      1. Why Subscribe?
      2. Free Access for Packt account holders
    7. 1. Instant PhoneGap
      1. So, what is PhoneGap?
      2. Installation
        1. Step 1 – system requirements
          1. Operating systems
          2. IDE or code editor
        2. Step 2 – create your directory structure
        3. Step 3 – create your config.xml and index.html files
        4. Step 4 – package your code
        5. Step 5 – create different OS apps through PhoneGap's Build feature
      3. Quick start – creating the My Places app
      4. Top features you need to know about
        1. Building the view's elements
        2. The views – find out how to build the app's views using CSS and HTML5
        3. JavaScript – find out the way to develop the events and actions of your app
        4. Geolocation – using PhoneGap features to improve an app's functionality, write once use everywhere
        5. Splash screen – finding out a fancy way to say hello to the app's users
        6. Test and enjoy – compiling your app in different platforms using Build
        7. More features you need to know about
      5. People and places you should get to know
        1. Official sites
        2. Articles and tutorials
        3. Twitter accounts
        4. Tools
        5. Community
18.191.5.239