google_maps_api.xml
andthe MapsActivity.java
files in the editor. (Note that your activity may havea different name, but it will be the one you configured during setup.) Noticethat the google_maps_api.xml
file contains instructions on getting aGoogle Maps API key before you try to run the application. The next sectiondescribes getting the API key in more detail.google_maps_api.xml
file that Android Studio created for you: google_maps_api.xml
file and paste it into your browser. The link takes you to the Google Cloud Platform Console and supplies the required information to the Google Cloud Platform Console via URL parameters, thus reducing the manual input required from you.google_maps_api.xml
file.google_maps_api.xml
file that Android Studio created for you: google_maps_api.xml
file.res/layout/activity_maps.xml
. It contains the following code:MapsActivity.java
. It should contain the following code after yourpackage name: