1.Because the Maps library is not a part of the standard Android library, you must declare it in the Android Manifest as a child of the element:

2.You also need access to the Internet in order to retrieve map tiles, so you must also add the following as a child of the element: 
 
3.Open the res/layout/main.xml file and add a single MapView as the root node: 
<xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/mapview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true"
android:apiKey="Your Maps API Key goes here"
/>
4.获取apiKey:
4.1打开Eclipse,选择Windows->Preference->Android->Build,这里便是你debug.keystore的路径
4.2在cmd中键入
cd debug.keystore的路径
keytool -list -keystore debug.keystore
获得MD5编码 
4.3去http://code.google.com/android/maps-api-signup.html 输入MD5编码,得到由google签署的Adroid Maps API key

最新文章

  1. Activity详解四 activity四种加载模式
  2. Mysql 死锁的详细分析方法
  3. 学习SQL的点点滴滴(一)-常用函数
  4. SQL-一道特殊的字符串分解题目
  5. Finding Nemo_BFS
  6. JS中cookie的基本使用
  7. IOS-- UIView中的坐标转换
  8. 使用JavaScript扫描端口
  9. 安全的PHP代码编写准则
  10. Android应用开发allowBackup敏感信息泄露的一点反思
  11. [转帖]Shell脚本中的break continue exit return
  12. bugku web web3
  13. aspx 页面中 js 引用与页面后台的数据交互 --【 js 调后台】
  14. Cenos7 部署asp.net core站点
  15. SqlServer 登录和卸载
  16. FI CO 常用表
  17. date简述
  18. hdu 4004 (二分加贪心) 青蛙过河
  19. 【LOJ#10064】黑暗城堡
  20. Jboss Jmx-Console和 Jboss web-console安全设置

热门文章

  1. [转]关闭WIN7“程序兼容性助理”
  2. [UE4GamePlay架构(九)GameInstance(转)
  3. Open Live writer 远程博客管理客户端
  4. Game of War - Fire Age 有何特别之处?
  5. 解决Mac nginx问题 [emerg] 54933#0: bind() to 0.0.0.0:80 failed (13: Permission denied)
  6. 网络虚拟化中的 offload 技术:LSO/LRO、GSO/GRO、TSO/UFO、RSS、VXLAN
  7. python动态函数hasattr,getattr,setattr,delattr
  8. Python日志配置类
  9. CentOS7.3下yum练手安装Nginx,支持php5.4
  10. Mybatis 为什么不要用二级缓存