A blog for technology, SEO tips, website development and open source programming.

Android – How To Set Up an API Key for Google Maps

1 85

It took me some time to figure how to integrate Google Maps inside my first Android application. Hopefully this post will explain the procedure and spare you some time.

The first thing you need is to locate a file called  debug.keystore.

This file on Windows is located at C:Documents and SettingsUser.android.

If you use a Mac or Linux OS, I’ve discovered that you’ll find the debug.keystore file at: ~/.android/.

The debug.keystore contains a digitial certificate that android uses to launch applications. The certificate is called ‘androiddebugkey’.  We’ll need to get some an MD5 hash for this certificate in order register for our map api key.

Hopefully you’ve located the debug.keystore file, so now we’ll use Java’s keytool utility to get the MD5:

  1. Navigate to the proper directory by opening a command prompt and typing:

cd C:Documents and SettingsUser.android

  1. Once you’ve navigated to the proper directory for your os, type this in…

keytool –help

  1. We will use the following command:

Keytool –genkeypair

Insert the appropriate details and once you completed , you’ll see something like this (the actual MD5 that we’re interested in is the last line):

androiddebugkey, mykey, 05-Jun-2013, PrivateKeyEntry,

Certificate fingerprint (MD5):

D1:16:4A:BD:73:73:A4:56:9D:CD:9A:44:A2:6C:11:AC

1 Comment
  1. […] week I wrote a post regarding the set up of an API key for Google Maps, as I was researching the web for a better solution a discover an awesome plugin that can help you […]

Leave a Reply

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More