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

Get Learning Mobile App Development: A Hands-on Guide to Building Apps with iOS and Android 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.