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.