Generating MD5 hash and Map Api key

RUN COMMAND PROMPT AS ADMINISTRATOR.

1.Locate your debug.keystore file
"C:\Users\bhushan\.android\debug.keystore"

2.Locate keytool.exe in Java\bin folder


C:\Program Files\Java\jre7\bin>keytool -v -list -alias androiddebugkey -keystore C:\Users\bshirsath\.android\debug.keystore -storepass android -keypass android Alias name: androiddebugkey Creation date: Mar 8, 2012 Entry type: PrivateKeyEntry Certificate chain length: 1 Certificate[1]: Owner: CN=Android Debug, O=Android, C=US Issuer: CN=Android Debug, O=Android, C=US Serial number: 1f5b8c95 Valid from: Thu Mar 08 17:51:52 IST 2012 until: Sat Mar 01 17:51:52 IST 2042 Certificate fingerprints: MD5: 6E:E7:47:2E:A7:07:8A:42:77:89:A8:83:C7:A6:53:87 SHA1: 1D:99:2B:0E:D3:2F:DE:12:92:CE:86:EE:5A:D2:99:80:28:F7:B6:22 SHA256: 30:0B:FC:40:7F:57:9F:51:FF:60:94:B9:CE:27:C1:7A:9D:EF:F7:14:C8: 36:B0:E8:F4:11:13:23:B1:67:17:08 Signature algorithm name: SHA256withRSA Version: 3 Extensions: #1: ObjectId: 2.5.29.14 Criticality=false SubjectKeyIdentifier [ KeyIdentifier [ 0000: DF 53 60 E5 59 3A 8C 07 EA E1 A2 3F 00 57 45 DD .S`.Y:.....?.WE. 0010: DF 29 08 BA .).. ] ] C:\Program Files\Java\jre7\bin>



4.Get a key for the Google Maps Android API v1:
https://developers.google.com/maps/documentation/android/v1/maps-api-signup

5.To register for a Google Maps Android API v1 Key, follow these steps:
-->If you don't have a Google account, use the link on the page to set one up.
-->Paste the MD5 key
-->Click "Generate API Key"


Generated key:0kVayCORItzMtF85IkONrJY0ECuVYdTcAuUE4HQ


6.Add API KEY to your application's MapView objects:

android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:enabled="true"
android:clickable="true"
android:apiKey="EXAMPLE_MAPS_API_KEY_STRING" />

 7.Add

package="com.example.package.name">
...


...


8.Sign your application with the certificate that corresponds to the Maps API Key referenced in your MapView elements.
Post a Comment