ArticleDirectory
- Thank you for registering the android map API key!
1. First, obtain your debug keystore location:
Open eclipse ---> Windows ---> preferences ---> Android ---> build
Check the default debug keystore location. my options are c: \ release ents and Settings \ myname \. Android \ Debug. keystore.
2. Run the following command in cmd:
Keytool-list-keystore ~ /. Android/debug. keystore
Or:
Keytool-list-alias androiddebugkey-keystore "path \ Debug. keystore"-storepass Android-keypass android
The double quotation marks indicate your keystore location. Note that your double quotation marks must be available. Otherwise, an error occurs: keytool error: Java. Lang. runtimeexception: usage error, and is not a legal command.
Execution result:
Androiddebugkey, May 4, 2009, privatekeyentry,
Certificate fingerprint (MD5): XX .............
Here, XX: XX ...... This Is Your authentication fingerprint.
3. Open http://code.google.com/intl/zh-CN/android/maps-api-signup.html
Enter your authentication fingerprint (MD5) to obtain the apikey. The result is as follows:
Thank you for registering the android map API key!
Your key is:
Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
4. Use the obtained apikey:
Add mapview to layout
<Com. Google. Android. Maps. mapview
Android: Id = "@ + ID/mapview"
Android: layout_width = "fill_parent"
Android: layout_height = "fill_parent"
Android: apikey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxx"/>