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

Changing our document manager


We've made a few minor changes to the way the document manager works. Nothing huge, but it does merit going over.

Getting ready

Open up www/views/documentsView.html in an editor so that you can follow along with the discussion.

Getting on with it

The largest change is how we deal with tapping parts of the document list display based on the platform we're on. If you recall in the last project, Android didn't feel terribly at home because one had to tap the icon to open the document, but if they tapped the name, they would be prompted to rename the document. In our new manager, we've reversed it so that tapping the name will open the document, and tapping the icon will prompt for a rename operation.

The changes are shown in the following document template:

<div id="documentsView_documentTemplate" class="hidden">
  <div class="documentContainer">
  <div class="documentTapArea" onclick="documentsView.documentContainerTapped(%INDEX%)"></div>
  ...