How does android map obtain the Google Map API key?

Source: Internet
Author: User

The first thing to do is to obtain an MD5 key(of course, It is implemented through the keytooltool (keytool.exe) of JDK)

1. Here, there are two main work aspects: keytool and debug. keystore.

2. First, find debug. keystore! (Go to the Eclipse development environment and select Window --> Preferences --> Android --> Build. At this time, we can see the Default debug keystore in the interface. The content in the box below it is debug. keystore path ). Here, we can find the location of debug. keystore based on this path. Just copy it!

3. Found debug. keystore. Now we need to use the JDK keytool to generate the MD5 key. In this case, the location of keytool.exe is under the bin folder of your installed jdk. This is determined based on your storage location and can be easily found. We step through the console cmd to enter the so-called bin path, and now copy the previously copied debug. paste the keystore here and run keytool-list-keystore debug. the keystore will prompt you to Enter the password, because you have not set the password before, so you can directly press Enter to skip. We can easily find that the MD5 key value has been generated. (Note: My keytool.exe tool is under D: Program FilesJavajdk1.6.0 _ 23bin, so the step for me to access and obtain the MD5 key is:

1. (First, paste the debug. keystore document to D: Program FilesJavajdk1.6.0 _ 23bin) and then open the run input box in WIN + R.

2. Enter cmd to enter the Console

3. d:

4. cd D: Program FilesJavajdk1.6.0 _ 23bin

5. dir (now you enter the bin directory)

6. keytool-list-keystore debug. keystore

7. Enter the password and click Enter to automatically generate the MD5 key.

)

4. Then, how can I really get the Google Map API key? Go to http://code.google.com/android/maps-api-signup.html. If the MD5 key is not displayed at the bottom of the page, it cannot be displayed. If this error occurs, it is very easy to solve it. You only need to open C in Notepad mode: WINDOWSsystem32driversetc hosts document, add 203.208.45.200 google-developers.appspot.com at the bottom of the document content save, close, and then you refresh your previous Wireless Display of the web page, you will find that the column that requires you to enter the MD5 key has been enabled. Now, you only need to enter the MD5 key you obtained and click the button below. Now, we can get our own Google Map API key, Good Luck!

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.