Monday, October 26, 2009

Obtain Google Maps API key

Step 1: Locate debug.keystore on your system. It is usually in the USER_HOME\Local Settings\Application Data\.androidfolder on windows.

Step 2: Use the keytool utility to generate certificate fingerprint (MD5). keytool utility that comes with the default JDK installation.

C:\>keytool -list -alias androiddebugkey -keystore .android\debug.keystore -storepass android -keypass android

It will getnerate a certificate fingerprint (MD5) in this format:

Certificate fingerprint (MD5): XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX

Step 3: Go to the page for obtaining the Maps API Key. Put your Certificate fingerprint (MD5) And get your API key for android Google Map application. On this page, paste the certificate fingerprint in the appropriate form field, and click the “Generate API Key” button. This will return a Maps API key string. 

The key can be used in the Maps Application by pasting it in the MapView element in the XML layout file where appropriate.

No comments:

Post a Comment