Chapter 40. Mapping with MapView and MapActivity

One of Google's most popular services—after Search, of course—is Google Maps, which enables you to map everything from the location of the nearest pizza parlor to directions from New York City to San Francisco (only 2,905 miles!), and includes street views and satellite imagery.

Most Android devices, not surprisingly, integrate Google Maps. For those that do, there is a mapping activity available to users straight from the main Android launcher. More relevant to you, as a developer, are MapView and MapActivity, which allow you to integrate maps into your own applications. Not only can you display maps, control the zoom level, and allow people to pan around, but you can tie in Android's location-based ...

Get Beginning Android 3 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.