佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 1673|回复: 1

android google map API

[复制链接]
发表于 25-12-2011 10:51 PM | 显示全部楼层 |阅读模式
如题,请问有谁可以教我如何用吗?有什么方法可以access到 google map API 啊?
我已经弄 androidmanifest.xml 的file 给 com.google.android.maps 了
还是弄不到!!
回复

使用道具 举报


ADVERTISEMENT

发表于 17-3-2012 12:37 AM | 显示全部楼层
回复 1# im独行侠

迟来的回复
Obtaining a Android Google Maps API Key

1. First, you need to find your “Certificate fingerprint (MD5)”. Open your terminal window, and type the following:
keytool -list -alias androiddebugkey -keystore path/debug.keystore -storepass android -keypass android
Path is C:\Users\\.android on vista, C:\Documents and Settings\\.android on xp. And ~/.android on linux or MacOS.

2. Select and copy your MD5 certificate into the clipboard.
It will look similar to: B4:76:E0:10:4C:13:A0:A4:0D:XX:XX:XX:XX:XX:XX:XX

3. Go to http://code.google.com/android/maps-api-signup.html . Paste in the MD5 certificate, agree to the
conditions, and generate the API key.

4. You should now have an API key. Keep it in a safe place. Use it within your layout. (Or a string resource
referenced by your layout).

  1. <?xml version=“1.0? encoding=“utf-8??>
  2. <LinearLayout
  3. xmlns:android=“http://schemas.android.com/apk/res/android”
  4. android:orientation=“vertical”
  5. android:layout_width=“fill_parent”
  6. android:layout_height=“fill_parent”>
  7. <com.google.android.maps.MapView
  8. android:id=“@+id/map”
  9. android:layout_width=“fill_parent”
  10. android:layout_height=“fill_parent”
  11. android:apiKey=“Your API key goes here” />
  12. </LinearLayout>
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 1-11-2025 11:56 AM , Processed in 0.105043 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表