Android Programming: The Big Nerd Ranch Guide, 2nd Edition
by Bill Phillips, Chris Stewart, Brian Hardy, Kristin Marsicano
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access