O'Reilly logo

Android™ Development Patterns: Best Practices for Professional Developers by Phil Dutson

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

11. Working with Location Data

Many applications may benefit from adding support or processing location data. There are many examples of how location can be used and why it is important. In this chapter, you learn ways to access and use user location data.

At first glance, it may seem simple to work with location data. Most Android devices contain a GPS or similar sensor, so it may be easy to believe that by simply turning this sensor on you should have access to the data you want.

This, however, is not the case. A user may not wish to turn on their device sensors because it diminishes battery life and may not return a perceivable benefit. Some users may also not want their exact movements and locations recorded and will turn off all location ...

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