This is my blog where I hope to post information about what I am doing technically and what my family is up to. I hope you enjoy

Wednesday, June 9, 2010

Google Maps Key

To get a Google Maps API key one has to first create an MD5 certificate fingerprint using the keytool from Java SDK.

Here is how I created that certificate using the keystore tool included in the JDK.
keystore -genkey -v -keystore delaney_keys.keystore -alias delaney_keys

You will go through a series of questions such as: name, city, password, etc
At the end of all the questions your keystore in my case delaney_keys.keystore will be created.

Now to get the MD5 key you execute the following command.

keystore -list -alias  delaney_keys  -keystore delaney_keys.keystore
You will be prompted for your password you entered above and once entered successfully the MD5 Certificate will be printed on the command line.

Using this to obtain your Google API Key
Go the Google API Registration page

Accept the terms on the agreement and enter the MD5 certificate that the keytool printed out above.  After entering the MD5 and submitting the page you will be displayed with a valid Google Maps API key that you can then use within your Android application to call the Google Maps API.

No comments:

Post a Comment

Layout-->Edit HTML -->