Tuesday, December 18, 2012

Create and Obtain API Key for Google Maps Android API v2 service

To obtain API Key for Google Maps Android API v2 service, you have to create API Project and obtaining your API Key in Google APIs Console.

Create API Project:

- Visit Google APIs Console, you have to login using your Google account.

- Scroll down to check agree and accept to these terms.


- Expend the select on left and select Other projects -> Create...


- Enter the name of your project and click Create project.


- Make sure Service is selected on the left.


- Click to enable Google Maps Android API v2.


- You will be asked to agree and accept the terms of Google Maps/Earth APIs service.


- Your Google Maps Android API v2 services for the project will become ON now.


Obtain an API Key:

- Click API Access and Create New Android Key...


- Enter your SHA1 Certificate fingerprint (refer to the post "Displaying the SHA1 certificate fingerprint") and package name in the box, and click Create.


- Finally, your API Key generated.


The series:
A simple example using Google Maps Android API v2, step by step.

6 comments:

Alo said...

Hi, I have tried to follow the steps but I can't to do that works correctly.
Could you put the .apk that you have generated as a download?

Best regards.

Andr.oid Eric said...

Hello Alo,

What the details of your case?

I cannot give you my apk, because my key work on my project only.

And, actually I haven't try using the key. I will try to make a exercise using Android Map API V2 in coming post.

Alo said...

The problem is that the map doesn't show, I have tried register the key, but it doesn't work.

I have tried in my mobile, tablet and emulator.

Andr.oid Eric said...

Are you using release certificate fingerprint?

Please read Generate Debug API Key for Google Maps Android API v2 service.

Alo said...

it works now using the debug.keystore, but it will work when I sing the apk?

Andr.oid Eric said...

By the experience of former Maps API V1, you have to replace with API Key of release certificate fingerprint in Release APK.