1

i'am really beginner in android. i want to ask some questions. thank you for answer :)

  1. how we know if our API key doesn't match with our keystore
  2. which one i must to use Sha1 or Md5 to get my API key in google console? because some blog or website say use Sha1 and the other say use Md5.

i've problem when running the mapactivity , error "couldn't get connection factory client" like this MapActivity couldn't get connection factory client and this https://stackoverflow.com/questions/20537934/couldnt-get-connection-factory-client-mapactivity-android.

the problem above is the reason i ask the question.thank you so much :)

Community
  • 1
  • 1
LeanDev
  • 251
  • 6
  • 19

1 Answers1

1

Firstly, sory for the late answer :). You must use sha1 fingerprint to generate new api-key. You can get your sha1 with your .keystore file. In debug mode with debug.keystore file you can get sha1. But this will not work after you publish your app with debug api-key. You should generate release api-key for it. Firstly you must sign your app and create new private .keystore file. Then you can get sha1 with this private keystore file. After that, you can generate release api-key for your app.

Batuhan Coşkun
  • 2,961
  • 2
  • 31
  • 48
  • thank you for your answer brother @BatuhanC, and how i generate release api-key? and create new private .keystore file? i just follow tutorial like this. may you give me tutorial to get it? thank you so much brother. 1. open cmd 2. i must go to C:\Program Files\Java\\bin 3. if i use JDK 1.7,i must type keytool -v -list -alias androiddebugkey -keystore “C:\debug.keystore” -storepass android -keypass android 3. then i get my SHA1, next i go google console and create new android key from my SHA1 and don't forget to turn on Google Maps Android API v2 first. – LeanDev Dec 14 '13 at 03:58
  • sory for late answer bro. this is the link that you can follow for creating .keystore file and getting your project's sha1. [Displaying sha1 end creating keystore file](http://android-er.blogspot.in/2012/12/displaying-sha1-certificate-fingerprint.html) – Batuhan Coşkun Dec 14 '13 at 22:07