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

Searching


If your app displays a lot of data, it's almost inevitable that you'll need to provide a mechanism for searching through that data.

The preceding pattern is one of the most common on most platforms. The user can type in the Search field and the results will appear in a table below the Search field. The Cancel button is not always present. Sometimes, it's just a small icon, but this depends on the app and the platform.

Whether or not the search occurs while the user is typing or it requires them to tap the Search button in their onscreen keyboard is up to you. If you can quickly search the dataset, it might be wise to display search results as the user types. This way they can quickly see the result set being whittled down to what they want.

If, however, it takes a long time to search, then it is better to wait until the user types what they want and then tells you when to search. Then you can take your time (don't forget to display some sort of notice that your app is thinking), and then display the results when the search is complete.

Another common pattern when searching is the need to scope the search, as in the following pattern:

Here, the buttons below the search bar are segmented buttons, something typical of iOS. There are equivalents for most platforms. If one of them is tapped, it is highlighted, and the search only occurs within the displayed scope.

In this example, if the user tapped To, then the search would only occur for the To portion of each item.

When it comes to searching, there are also often requests to sort and filter the data as well. You can usually accommodate these by using a toolbar with the sort and filter buttons on it, and then display a menu listing the various options. For example, tapping a Sort button could display a menu of first name, last name, account number, and so on. There are various patterns that one could use to implement more complex sorting and filtering, but if possible, keep it simple.