O'Reilly logo

The Android Developer’s Cookbook: Building Applications with the Android SDK by Nelson To, James Steele

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

10. Location-Based Services

Location-Based Services (LBS) enable some of the most popular mobile applications. Location can be integrated with many functions, such as Internet searching, picture taking, gaming, and social networking. Developers can leverage the available location technology to make their applications more relevant and local.

This chapter introduces methods to obtain the device’s location and then track, geocode, and map it. In addition, there are recipes on overlaying the map with markers and views.

Location Basics

An application requires the following to access the location services from the Android system:

LocationManager—Class providing access to Android system location services

LocationListener—Interface for receiving ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required