Google Maps is used in the app for finding the location of a place, or to navigate you to that place. Integrating Google Maps in the app is simple; check out the steps below:
First we need to enable the Google Maps API from the Developer Console link: https://console.cloud.google.com. In your project page select Library; then, under Google Maps APIs, select Google Maps Android API:
![](https://static.packt-cdn.com/products/9781786468956/graphics/assets/908d3a72-00ee-4fb5-bc74-ac86bf4ff6af.png)
Next, enable the API so that it can be used in our application. After the Google Maps API is enabled, we need to start integrating it into our app:
![](https://static.packt-cdn.com/products/9781786468956/graphics/assets/accb62cb-86ba-492c-afc1-1c8632154b52.png)
In Android studio create a new Google Maps Activity:
![](https://static.packt-cdn.com/products/9781786468956/graphics/assets/698587fc-5bde-48f6-8d95-1349e4c12a8d.png)
After the activity is created, we need to create an API key from the developer console:
![](https://static.packt-cdn.com/products/9781786468956/graphics/assets/4480e86d-95e3-4b42-8b88-f6a1e199ca86.png)
Go to the credentials section in the developer console, and create a new API key:
![](https://static.packt-cdn.com/products/9781786468956/graphics/assets/5f6baf6e-8147-4e1e-a69c-6d9cfb8e4e95.png)
Here, select Android app and enter your app's package name and Sha-1 certificate. After saving the API key, use...