1. First find the debug keystore path:
Open Eclipse ---> Windows ---> Preferences ---> Android ---> Build
Generally, the path C: \ Users \ Administrator \. android \ debug. keystore
2. Run the following command in cmd:
1) Open the cmd Console
2) navigate to the jdk bin directory.
Cd D: \ dev \ java \ jdk1.6.0 _ 12 \ bin
D:
3) execute the command to obtain the authentication fingerprint:
Keytool-list-alias androiddebugkey-keystore "C: \ Users \ Administrator \. android \ debug. keystore"-storepass android-keypass android
4) obtain the authentication fingerprint (MD5): AF: 95: 79: AB: D8: 11: 2A: 09: D5: AB: 87: 76: BD: 92: 8E: c8
3, open through the browser: http://code.google.com/intl/zh-CN/android/maps-api-signup.html
Note: You can obtain the Map API Key only after registering a google account. Therefore, you must log on to the Google account before entering this page.
4. Copy "authentication fingerprint (MD5)" to My certificate's MD5 fingerprint below
5. Click Generate Api key.
View sourceprint? Thank you for registering the Android map API key!
Your key is:
0ZUHwocAEeJEiMatLbTddLH_rS92w_CsVyGuNKQ
This key applies to all applications that use the certificate corresponding to the following fingerprint for verification:
AF: 95: 79: AB: D8: 11: 2A: 09: D5: AB: 87: 76: BD: 92: 8E: C8
The following is an xml format example to help you understand the map function:
<Com. google. android. maps. MapView
Android: layout_width = "fill_parent"
Android: layout_height = "fill_parent"
Android: apiKey = "0ZUHwocAEeJEiMatLbTddLH_rS92w_CsVyGuNKQ"
/>