The Maps API key is based on a short form of your application’s digital certificate, known as its SHA-1 fingerprint. The fingerprint is a unique text string generated from the commonly-used SHA-1 hashing algorithm. Because the fingerprint is itself unique, Google Maps uses it as a way to identify your application.
To setting up Google Maps Android API V2 you need to get API key and register your project to Google APIs Console. For development process you need debug API key to make the map works. To get this API key you need to get SHA1 code first.
There are 2 ways to get SHA1 for debug:
- Open command prompt and type the following code and you will see your SHA1 code as shown on Figure 1. If you get “keytool in not recognized….” you can read Add Java Path article.
keytool -list -v -keystore "%USERPROFILE%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
- Or open your eclipse, click Window > Preferences On window preferences select Android on the left side, extend it and click build. You can get SHA1 code in right as shown on Figure 2.