Apply for Google map API key

Source: Internet
Author: User

How to apply for the Google map API key)
Reference:

Http://wangshifuola.blogspot.com/2010/12/androidgoogle-map-api-key.html

Step 1:Find the path of the android key store file: In eclipse, access"Windows> preferences> Android> build", You can see"Default debug store"Value, which is android
Key store file path

Step 2: In the DOS window, find the android key store file path (assuming c: \ Documents ents and Settings \ tomsonxu \. android \ debug. keystore), execute the command keytool to obtain the MD5 code:
Keytool-list-alias androiddebugkey-keystore"C: \ Documents and Settings \ tomsonxu \. Android \ Debug. keystore"-Storepass Android-keypass android

Step 3: Go to the Google map API key application website
Http://code.google.com/intl/zh-tw/android/maps-api-signup.html, input the MD5 code generated by step 2, click "generate API key" button, and a golden volume (map api key) is generated)

Step 4:The obtained map API key secret is sent to Android: apikey of COM. Google. Android. Maps. mapview (in res/layout/xxx. xml of your android project ).You can.

Token: the token is generated for the MD5 token. Therefore, you must apply for the token on your own, it is ineffective to use others. That is, you can use the MD5 code generated by the android debug keystore file of machine A in the android project on machine. However, if you move the android project to machine B to run the project (using the original golden region), the map will not be obtained because the old golden region is used, however, machine B's Android debug keystore file and machine A's Android debug
The keystore file is different, so an error occurs.

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.