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

Chapter 5. Talking to Your App

The media capabilities of our mobile devices are frankly amazing, especially when you consider where we were five, ten, fifteen years ago. The first mass-produced MP3 player was the SaeHan/Eiger MPMan (http://en.wikipedia.org/wiki/Portable_media_player#SaeHan.2FEiger_MPMan) introduced in 1997. The device had 32 MB of storage, enough for roughly 6 to 7 songs (assuming 1 MB/minute, 5m per song). While it may seem paltry by today's standards, it was a revolution and spawned a new way to listen to music.

Today's devices are now so much more, portable entertainment devices that can play games, video, and all sorts of audio. Being able to play sounds in your app is critical, and there are few apps that could make the case for having no sound whatsoever. Although a bit on the extreme side, perhaps, TweetBot is a classic example of an app that is enhanced by the sound it produces via the user's interactions.

Today's devices can also record audio for a variety of reasons...