Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
One of the biggest opportunities presented to mobile developers is the wealth of options opened up by the very nature of Android devices like phones and tablets: They are mobile! While the location of a user of a traditional desktop application can be interesting, it's rare for someone to pick up a desktop machine and move about with it all day. But mobile devices move, and their location (and, by implication, the location of the device user) can influence everything from games, to searching for products and information, to nuances and options for things as diverse as language settings and device behavior.
In this chapter, we'll explore geolocation in HTML5, CSS, and JavaScript for Android devices. We'll explore a simple location-enabled app, and see how the features and functions of HTML5 can be leveraged. So, let's get moving!