Monday, July 9, 2012

Google Map API key genaration in ubuntu for Android?


shailesh@shailesh-desktop:~$  cd /
shailesh@shailesh-desktop:/$ cd usr/
shailesh@shailesh-desktop:/usr$ cd lib/
shailesh@shailesh-desktop:/usr/lib$ cd jvm/
shailesh@shailesh-desktop:/usr/lib/jvm$ cd java-6-openjdk/
shailesh@shailesh-desktop:/usr/lib/jvm/java-6-openjdk$ cd bin/

then we want to get the keystore.To get the android default debug keystore:

eclipse->windows->preferences->Android ->Build, then copy the  default debug keystore.

eg: /home/shailesh/.android/debug.keystore \

shailesh@shailesh-desktop:/usr/lib/jvm/java-6-openjdk/bin$ keytool -list -alias androiddebugkey \-keystore /home/shailesh/.android/debug.keystore \
> -storepass android -keypass android
androiddebugkey, 11 Jun, 2012, PrivateKeyEntry,
Certificate fingerprint (MD5): 65:13:5E:81:B6:F4:99:12:8C:0C:4A:DF:60:3B:48:B8

shailesh@shailesh-desktop:/usr/lib/jvm/java-6-openjdk/bin$


Then take the following link: https://developers.google.com/android/maps-api-signup
Then agree the teams and conditions to generate key.

Your key is:
0vU_TfSqyKwFGQzFx08B4SLzVDTy62tVto_0CYA

This key is good for all apps signed with your certificate whose fingerprint is:
65:13:5E:81:B6:F4:99:12:8C:0C:4A:DF:60:3B:48:B8

1 comment:

  1. Thanks for your tutorial.....
    But I have problem, my Fingerprint code is (SHA1) not (MD5), and when I will run in https://developers.google.com/android/maps-api-signup, the result is not valid,
    Could you help me....Thanks

    ReplyDelete