Apply for the android Google map API key

Source: Internet
Author: User

1. First locate the debug keystore location:

2. In "cmd", type the following command:

Keytool-list-alias androiddebugkey-keystore "C: \ Users \ itrue \. Android \ Debug. keystore"-storepass Android-keypass android

If the system prompts that keytool cannot be found, add the bin directory in JDK to the environment variable.

Obtain the authentication fingerprint.

3. Input http://code.google.com/intl/zh-CN/android/maps-api-signup.html in chromeEnter the authentication fingerprint (MD5) to obtain the API key.

For example:

0m0vb7w4kx_5qrfs7xv0dva_fti6wma-r-irwcq

4. Use methods such:

<Com. Google. Android. Maps. mapview Android: layout_width = "fill_parent" Android: layout_height = "fill_parent" Android: apikey = "regular"/>



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.