O'Reilly logo

Learning Mobile App Development: A Hands-on Guide to Building Apps with iOS and Android by Michael Eierman, Jakob Iversen

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

Passing Data Between Controllers

To use maps in your app, you have to give the app permission to use certain device features. These permissions are used to alert the user during installation or upgrade what the app is allowed to access on the device. The user permits that app to use those devices, services, or data by choosing to install the app after reviewing the permissions. Permissions are set in the Android manifest file. If a permission is required by what you are trying to do but is not in the manifest, the app will crash.

Open the AndroidManifest.xml file and enter the permissions in Listing 7.1. Put these permissions after the version number and before the uses-sdk tags.

Listing 7.1 Required Map Permissions

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