android mapView
2024-10-16 00:53:43
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
最新文章
- Activity详解四 activity四种加载模式
- Mysql 死锁的详细分析方法
- 学习SQL的点点滴滴(一)-常用函数
- SQL-一道特殊的字符串分解题目
- Finding Nemo_BFS
- JS中cookie的基本使用
- IOS-- UIView中的坐标转换
- 使用JavaScript扫描端口
- 安全的PHP代码编写准则
- Android应用开发allowBackup敏感信息泄露的一点反思
- [转帖]Shell脚本中的break continue exit return
- bugku web web3
- aspx 页面中 js 引用与页面后台的数据交互 --【 js 调后台】
- Cenos7 部署asp.net core站点
- SqlServer 登录和卸载
- FI CO 常用表
- date简述
- hdu 4004 (二分加贪心) 青蛙过河
- 【LOJ#10064】黑暗城堡
- Jboss Jmx-Console和 Jboss web-console安全设置
热门文章
- [转]关闭WIN7“程序兼容性助理”
- [UE4GamePlay架构(九)GameInstance(转)
- Open Live writer 远程博客管理客户端
- Game of War - Fire Age 有何特别之处?
- 解决Mac nginx问题 [emerg] 54933#0: bind() to 0.0.0.0:80 failed (13: Permission denied)
- 网络虚拟化中的 offload 技术:LSO/LRO、GSO/GRO、TSO/UFO、RSS、VXLAN
- python动态函数hasattr,getattr,setattr,delattr
- Python日志配置类
- CentOS7.3下yum练手安装Nginx,支持php5.4
- Mybatis 为什么不要用二级缓存