Android Permissions and Google Maps
In the previous chapter, we learned how to present data in lists using lazy lists. Then, we used that knowledge to present the user with a list of secret cat agents. This chapter will teach you how to request and obtain app permissions in Android to access device features that provide richer functionality. You will also gain a solid understanding of how to include local and global interactive maps in your app by using the Google Maps API.
First, we will explore the Android permissions system. Many Android features are not immediately available to us. These features are gated behind a permission system to protect the user. For us to access those features, we must ask the user to allow us to do so. These features include, but are not limited to, obtaining the user’s location, accessing the user’s contacts, accessing their camera, and establishing a Bluetooth connection. Different Android versions enforce different permission rules...