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

The login screen


Most apps have them and although they are sometimes the bane of a user's existence (primarily because the password is hard to type on a small screen), they're also critically important.

It's est, if possible, to use an e-mail for the user's unique name. This is a piece of information they already know and have at hand. If that's not possible, however, replace Email with Username.

Always have the Password field obscure the characters. This is typically done with dots that replace each character as they are typed. The last character can be displayed, but should only be shown for a short time. Most platforms will give this to you for free as long as you specify that the input field is a Password field.

Sometimes, it's acceptable to have an option to show the password in its entirety. This is typically offered as a checkbox or toggle below the Password field. It's not used very often, and only in circumstances where the password itself may be very complicated. One good example is when entering Wi-Fi information; some devices allow you to see the password as you type it without obscuring the letters since Wi-Fi passwords are painfully complex.

Make the Login or Sign in button obvious. It should beg to be tapped. Give it a different color, larger text—anything to draw the user's attention to it.

Don't forget to give the user a way to reset or retrieve their password (and their username, if you don't use their e-mail). If your app doesn't provide this mechanism, you'll be left with some very upst users.

If it makes sense for your app, you might also want to consider a Remember Me option. This is often used in apps where security isn't quite as important as, say, a bank application. If you don't want to have the app remember the user forever, it's often acceptable to remember the user for a couple of weeks or a month. If you do add this feature, be sure to warn the user about the dangers of using this feature on shared devices and on networks they don't trust.

One final note: use SSL. That is, the login process should be over a secure connection.