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. 修改android virtual device路径
  2. Android调用系统自带的文件管理器进行文件选择并获得路径,android
  3. Android Studio中配置代码和资源的路径
  4. Android Studio apk生成路径
  5. Android拷贝图片到指定文件路径
  6. 修改Android Media Scanner的扫描路径
  7. Android修改Eclipse 中的Default debug keystore路径,以及修改and
  8. 直播源码Android实现 曲线路径动画
  9. android中获取当前程序路径

随机推荐

  1. Android使用zxing-android-embedded(由zxi
  2. Android中播放Gif动画取巧的办法
  3. 【Android】蓝牙开发—— 经典蓝牙配对介
  4. 浅析Android 4.0的通知系统(附Android 4.0
  5. Android(安卓)AutoLayout全新的适配方式
  6. 2018 年初值得关注的 15 个新 Android 库
  7. Google发起开发Android OS 迄今已有三年
  8. 让你自己编写的Android的Launcher成为系
  9. Android Intent跳转第三方地图导航大全
  10. Android(安卓)真机布局查看