Abstract
In this chapter, we’ll tackle the very trendy subject of location-based services. One of Android’s major selling points is its native access to the Google Maps infrastructure. Although it is an optional feature, what carrier wouldn’t include this powerful package? I suppose that, in the coming year or so, we’ll find out. You’ll delve into this subject in two major parts in this chapter. First, you’ll take on Android’s LocationManager object, which allows you to determine your latitude and longitude, ostensibly, using a variety of systems under the hood. Next, you’ll get into making the Google Maps API do your bidding. It’s important to note that Android’s support for GPS and tower-based location systems is not fully implemented. At press time, it’s possible to emulate GPS data either by using the default, which is a drive around the Bay Area in California, or by building your own fake GPS data. My example will use the first method, but I’ll include code that should eventually work with shipping handsets. You can find more information about building a custom GPS route and the ins and outs of location-based services (LBSs) in the Android documentation at http://code.google.com/android/toolbox/apis/lbs.html.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2008 Chris Haseman
About this chapter
Cite this chapter
(2008). Location, Location, Location. In: Android Essentials. Apress. https://doi.org/10.1007/978-1-4302-1063-4_4
Download citation
DOI: https://doi.org/10.1007/978-1-4302-1063-4_4
Publisher Name: Apress
Print ISBN: 978-1-4302-1064-1
Online ISBN: 978-1-4302-1063-4
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)