Skip to main content

Location, Location, Location

  • Chapter
Android Essentials
  • 1272 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 19.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 16.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints 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

Publish with us

Policies and ethics