一.申请百度地图sdk的APIKey
1.数字签名的查看方法:
打开Eclipse->Window->Preferences->Android->Build
2.在AndroidManifest.xml的<application>标签中配置申请到的APIKey
二.让地图显示出来
1.将sdk中的lib包解压(Lib包中包含使用百度地图所必须依赖的库),将其中的jar包复制到项目的libs目录下
2.在项目的libs目录下新建armeabi目录,将.so文件复制到该目录下
3.代码部分
3.1在activity_main.xml中添加MapView控件布局
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.baidu.mapapi.map.MapView
android:id="@+id/map_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clickable="true"/>
</LinearLayout>
3.2加载地图控件以及后续操作
package com.example.baidumaptest;
import java.util.List;
import com.ba