28th. Apply for the Android Google Map API key

Source: Internet
Author: User
Tags xml format example

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"
/>

 

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.