Book Image

PhoneGap 2.x Mobile Application Development HOTSHOT

By : Kerri Shotts
Book Image

PhoneGap 2.x Mobile Application Development HOTSHOT

By: Kerri Shotts

Overview of this book

<p>Do you want to create mobile apps that run on multiple mobile platforms? With PhoneGap (Apache Cordova), you can put your existing development skills and HTML, CSS, and JavaScript knowledge to great use by creating mobile apps for cross-platform devices.</p> <p>"PhoneGap 2.x Mobile Application Development Hotshot" covers the concepts necessary to let you create great apps for mobile devices. The book includes ten apps varying in difficulty that cover the gamut – productivity apps, games, and more - that are designed to help you learn how to use PhoneGap to create a great experience.</p> <p>"PhoneGap 2.x Mobile Application Development Hotshot" covers the creation of ten apps, from their design to their completion, using the PhoneGap APIs. The book begins with the importance of localization and how HTML, CSS, and JavaScript interact to create the mobile app experience. The book then proceeds through mobile apps of various genres, including productivity apps, entertainment apps, and games. Each app covers specific items provided by PhoneGap that help make the mobile app experience better. This book covers the camera, geolocation, audio and video, and much more in order to help you create feature-rich mobile apps.</p>
Table of Contents (19 chapters)
PhoneGap 2.x Mobile Application Development HOTSHOT
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
InstallingShareKit 2.0
Index

Designing our data model


In this task, we will work on designing our data models. We'll focus on our document and the items that go in it; the document manager model remains unchanged from the previous project.

Getting ready

If you look up the documentation for geolocation, you'll notice that the position information contains quite a bit of information including latitude, longitude, altitude, heading, and speed. Most implementations also return the accuracy of the location and altitude, but we'll be ignoring that for now. Since our map will show the current location, we will assume that the user won't start recording until the current location is correct, and so waiting for the accuracy to settle down is less important. If we were going to begin recording instantly, we would need to wait for the accuracy to narrow to an acceptable limit, and this is where those values become useful.

Go ahead and get out your paper and pencil, and we'll start working on our data model.

Getting on with it

Our data...