How Android Map obtains Google Map API key

Source: Internet
Author: User
Tags md5

The first thing to do is to get a MD5 key (which, of course, is implemented through the JDK Keytool tool (Keytool.exe))

1. Here, there are two main areas of work Keytool, Debug.keystore

2. First, find debug.keystore! (Enter the Eclipse development environment and choose Window-->preferences-->android-->build, where we can see the default debug KeyStore in the interface, The content in the box behind it is the Debug.keystore path. Here, we can according to this path to find the location of the Debug.keystore, need to be copied out!

3. Found the Debug.keystore, now we have to do is to use the JDK Keytool tool to generate MD5 key. In general, the location of the Keytool.exe is under the Bin folder of the JDK you installed, which is easily found according to the location of the individual's storage. We go through the console cmd step-by-Step into the so-called bin path, now put the previously copied good Debug.keystore pasted here, at this time to run Keytool-list-keystore Debug.keystore will be prompted to enter the password, because you have not previously set the password, so you can press the ENTER key to skip. It is easy to see that the MD5 key value has been generated. (Hint: My Keytool.exe tool is under D:program Filesjavajdk1.6.0_23bin, so the steps I get into and get MD5 key are

1. (First, paste the Debug.keystore document under D:program filesjavajdk1.6.0_23bin) and then win+r Open the Run input box

2. Enter cmd into the console

3.D:

4.CD D:program Filesjavajdk1.6.0_23bin

5.dir (You are now entering the bin directory)

6.keytool-list-keystore Debug.keystore

7. Request to enter the password to click on the ENTER key, automatically generate MD5 key

)

4. Then, how do you really get the Google Map API key? We first enter the URL http://code.google.com/android/maps-api-signup.html. If you need to enter MD5 key at the bottom of the place does not appear this page cannot display the best, if this error, we want to solve it is very simple, just want to Notepad mode to open the C:WINDOWSSYSTEM32DRIVERSETC under the hosts document, At the bottom of the document content plus 203.208.45.200 google-developers.appspot.com save, Close, and then you go to refresh your previous wireless display that page of that page, you will find that the following request to enter the MD5 key of the column has been opened , all you have to do now is to enter the MD5 key you've acquired before and click on the button at the back. At this point, 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.