Google

Sunday, July 11, 2010

Google Maps Setting



Before you can use MapUI or MapActivity, you will need to add the Google API as shown above.
Right click the project, the select properties, then select Google API. This wil insert Android + Google API.

Prior to that you will have to get Google Map API keys as follows:

keytool -list -keystore "C:\Documents and Settings\YourName\.android\debug.keystore"


Output (Debug key):

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


Getting the release key

keytool -list -keystore "D:\My Documents\Android\eclipse-java-helios-win32\eclipse\keystore_yourname"

Output (Release key):

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

Note that the path will be different on your system.

Then, head on to http://code.google.com/android/maps-api-signup.html to register for
the Map API keys by entering the MD5 keys above.