31 Locations and Play Services

In this chapter, you will start writing a new app called Locatr that performs a Flickr geosearch. It will find your current location and then look for pictures nearby (Figure 31.1). Then, in the next chapter, you will show the picture on a map.

Figure 31.1  Locatr at the end of this chapter

Locatr at the end of this chapter

It turns out that this simple job – finding your current location – is more interesting than you might expect. It requires integrating with Google’s set of libraries that live outside the standard library set, called Google Play Services.

Locations and Libraries

To see why, let’s talk a bit about ...

Get Android Programming: The Big Nerd Ranch Guide, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.