Followers

Thursday, August 9, 2012

Retrieve Google Map API Key in Android


  • Locate the android debug key in your system. it is found on the following locations depending on your operating system (This path will be useful):
    • Windows XP: C:\Documents and Settings\<user>\.android\debug.keystore
    • Mac OS X and Linux : ~/.android/debug.keystore (where ~ is the path of your homedirectory.
  • In a terminal, use the following keytool command to generate the MD5 Hash:
    • keytool -list -alias androiddebugkey -keystore <path_to_debug_keystore>.keystore -storepass android -keypass android
  • Copy the generated hash
  • Go to : code.google. com/android/maps-api-signup.html (you maybe required to login with your Google account)
  • Paste the above generated MD5 hash there, accept the Terms and Conditions and click onGenerate button
  • You'll get the API key for your map. paste this in your XML file

No comments:

Post a Comment