I got problem that when I ran my application uses Google Map API v2 from eclipse there is no problem, It worked well. But when I uploaded the apk to the Play store and tried installing from Play store the result is the maps is blank. On this article I want to share the solution. The figure just for sample.
The main problem is “I used wrong SHA1 for api key Google Map v2“. I used SHA1 from debug.keystore when I created the api key in the google code console. The right way if you want your application show the maps is you should use SHA1 from release keystore for creating api key, like when you signed your apk for uploading to the Playstore.
Suppose, before you have created the keystore for signing, so we just use the cmd (command prompt) to print the SHA1. The syntax like this
C:\Program Files\Java\jdk1.x.x\bin>keytool -list -v -keystore G:\key.keystore –alias author
C:\Program Files\Java\jdk1.6.0_03\bin>keytool -list -v -keystore G:\key.keystore
Enter keystore password:
Alias name: yusufmufti
The result like this
Creation date: 01-Mar-2014
Entry type: PrivateKeyEntry
Certificate chain length: 1
Serial number: 53114ee9
Valid from: Sat Mar 01 06:07:21 AST 2014 until: Wed Feb 23 06:07:21 AST 2039
SHA1: 9E:2F:7E:2A:66:94:E4:xxxxxxxxxxxxxxxxxxxxx:94:29:D4:8E (this is your SHA1 for create API key)
Signature algorithm name: SHA1withRSA
The result from Playstore the map show.