(Android map development) 1. Steps to configure the google map function in the Development Environment

Source: Internet
Author: User

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

Related Article

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.