Maps API Setup

Let’s move forward. In addition to the permissions configuration you did in the previous chapter, the Maps API requires adding more items to your manifest.

The first part of that is simply to add a few additional permissions. The Maps API needs to be able to do the following:

  • download map data from the Internet (android.permission.INTERNET)

  • query the state of the network (android.permission.ACCESS_NETWORK_STATE)

  • write temporary map data to external storage (android.permission.WRITE_EXTERNAL_STORAGE)

The INTERNET permission was added in the previous chapter, so that is already taken care of. Add the other two permissions to your manifest.

Listing 32.1  Adding more permissions (AndroidManifest.xml ...

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.