

- #GOOGLE MAP SNAPSHOT ANDROID ANDROID#
- #GOOGLE MAP SNAPSHOT ANDROID CODE#
- #GOOGLE MAP SNAPSHOT ANDROID SERIES#
This can be either your release key or debug.keystore. To get the SHA1 signature, you need to open a terminal or command prompt and navigate to the location of your application's signing key. This provides two fields, one for adding a package name and another for adding the SHA1 from your application signing key.įor this tutorial, I will use the package name. On the next screen, click Add package name and fingerprint. If you were to create the same application using maps on different platforms, you could create a key for each platform.
#GOOGLE MAP SNAPSHOT ANDROID ANDROID#
Since this is an Android application, you need to select Android Key in the next dialog. When you are presented with the Credentials dialog, press the blue Add Credentials button and select API Key. This takes you to a screen where you can click on the blue Enable API button in order to enable the Maps API for your project.Īfter you've enabled the Maps API, click on the Credentials item under APIs & auth in the side navigation to get a key to access the Maps API in your application. For this tutorial, click on the item titled Google Maps Android API under the Google Maps APIs heading. While there's a search box on this screen, you'll notice that Google placed the Maps API items at the top of the center column for developers to access. From here you will want to expand the APIs & auth item in the left navigation panel and click on APIs. When the project has been created, or you have selected an existing project, you are taken to the project Overview screen. Once you hit Create, a dialog appears in the lower right corner of the page with a loading indicator while the project is being created. There are some restrictions on what you can name your project as only letters, numbers, quotes, hyphens, spaces, and exclamation points are allowed characters. For this tutorial, I have created a project called TutsPlusMaps. This presents you with a dialog that asks for a project name. To create a new project, click on the blue Create Project button in the top left corner of the screen. If you don't see a Create Project button, then look for a button labeled Create an empty project. If not, you can follow along and create a new project for your maps application.

If you already have a project created, you can skip the next section. To do this, start by going to the Google Developer Console. In order to use the Google Maps API, you must register your application on the Google Developer Console and enable the API.
#GOOGLE MAP SNAPSHOT ANDROID CODE#
All code for this tutorial can be found on GitHub. It will cover setting up the Google Maps API through the Google Developer Console, including a map fragment in your applications, displaying the user's location, adding markers, drawing on the map, and some general methods that will add utility to your app.
#GOOGLE MAP SNAPSHOT ANDROID SERIES#
This tutorial is the first in a series going over Google Maps v2 for Android. Without a doubt, maps are one of the most useful tools for users when included in an app.
