Generation of SHA1 - Another way to do it?

3

All the tutorials point to a single path, in order to generate the SHA1 or MD5 sequence to be used in the Google Console, in order to get the Key API to be put in the manifest.xml file.

That is, they say go to the prompt command and type that long string of

keytool  -list -alias [apelido] -keystore [nome do arquivo keystore] -keypass [senha]

that will return MD5 or SHA1 depending on whether you use -v or not as another key in the above command.

However, I noticed that the SHA1 generated by the command is the same one that is obtained when APK is generated, through the action of Eclipse menus (Export, project, key, apk name). The last window, when Eclipse compiles the application displays the same characters.

My question: instead of typing at the Windows' prompt, it is no longer practical to compile the application, copy SHA1, bring it to the Google Console, paste it together with the application package, API Key generated, return to the application and edit the manifest.xml tag and recompile to enforce the use of the map?

    
asked by anonymous 06.02.2014 / 11:41

1 answer

1

You can generate the key by eclipse by going to the menu bar e:

Window -> Preferences -> Android-> Build and you will see a field filled with the SHA1 key.

Look at the photo:

    
18.02.2014 / 13:26