Wednesday, October 17, 2012

MD5 Certificate Fingerprint in Android


          MD5 Certificate genration is needed for implement google map in our apllication so first we need to genrate md5 certificate.
We can generate it in different opperating systems-

Step1-

Windows Vista: C:\Users\<user>\.android\debug.keystore

Windows XP: C:\Documents and Settings\<user>\.android\debug.keystore

OS X and Linux: ~/.android/debug.keystore

Open console/terminal on to the above location where debug.keystore file is present and execute

"keytool -list -keystore debug.keystore"

Output will be like (press simply enter when password is asked)
=====================================================================
root@ZSS0057:~/.android# keytool -list -keystore debug.keystore
Enter keystore password:
*****************  WARNING WARNING WARNING  *****************
* The integrity of the information stored in your keystore  *
* has NOT been verified!  In order to verify its integrity, *
* you must provide your keystore password.                  *
*****************  WARNING WARNING WARNING  *****************

Keystore type: JKS
Keystore provider: SUN

Your keystore contains 1 entry

androiddebugkey, 11 Sep, 2012, PrivateKeyEntry,
Certificate fingerprint (MD5): 04:FB:63:04:D5:6B:12:92:9F:3E:20:9F:23:DD:B8:53

Step2-
copy MD5 Certificate fingerprint and paste it in below url-

https://developers.google.com/android/maps-api-signup

You will get Map Keys On successful signup. Put those in the MapView Element of your view.


Thanks,


No comments:

Post a Comment