This article describes how to configure the map function of android.
Step One download google in android sdk
API
Note: In android, the maps function is not a standard api of google. google puts the API in its own library. Before developing the sdk, download and develop the application, for Google APIs of the API version.
Download procedure: Open the SDK Manager.exe in android JDK --> select Available packages
And display Instances available for download --> select third on the right.
Party Add-ons, --> select the first google
Inc. --> After the list is displayed, select and download android
API.
Note: Some Old android sdk versions cannot download google APIs. The main reason is that the installation path contains spaces. You must reinstall the android sdk and the installation path does not contain spaces.
Step Two registers on google and obtains the API key for map development.
If you use the map feature in your application, you need to go to the google site: http://code.google.com/intl/zh-CN/android/maps-api-signup.html
, Obtain the API
The API generation rule is to obtain the MD5 value of the software certificate. On the registration interface, enter MD5
Value to generate the development API
(Note: A certificate for an api)
Step Three: how to obtain the MD5 value of the production software Certificate
[1]Keystore File
The debugged keystore is in C: \ Users \ <machine Name> \. android \
Debug. keystore
[2]
Use keytool.exe in Java to obtain MD5
L keytool.exe path: C: \ Program Files \ Java \ jre6 \ bin \ keytool.exe
Password: keytool
-List-alias androiddebugkey-keystore <certificate path>-storepass
Android-keypass android
The following is an actual call example: keytool
-List-alias androiddebugkey-keystore C: \ Users \ macroxu \. android \ debug. keystore
-Storepass android-keypass android
Step four: Create a project based on google APIs
When creating a project, select
Google API version of android SDk
Zhuoyi comments network sponsorship support