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

Adding the picker


Pickers are all over the place in iOS, and we really don't have a good analogue for them in our own framework yet. These things look like the following screenshot:

They're great at showing several choices at once and letting the user select one. They are often used to pick calendar dates, times, or even just a specific number out of a large range. They are good for this because they allow the user to scroll over a large range quickly.

In our example, we're just going to give a few options, but we could have had two hundred items in here with no real loss of functionality (but really, the user wouldn't need all of those in our case).

Getting on with it

We're going to go back to the social view for a moment and revisit something we said we'd come back to. Remember that # button? Yeah, now's the time we handle it.

Essentially, we're going to give the user the option to pick how many tweets they want to be loaded at once. Cool, right? This could be done in an ActionSheet, but the...