Android之运用百度地图检索地点
Android之百度地图的更加深入学习 之前的文章我是主要先介绍获取用户的准确经纬度。现在我讲讲述学习百度地图更加深入学习-----根据自己想查找的地点来确定位置。 首先基本工作我们要完成,需要百度SDK(在这里我就不在介绍了,我之前的文章有介绍如何申请) 首先需要配置成这样我们才能使as与百度地图才能连接(这里它们相当于是as与百度地图之间的桥梁) 首先需要创建一个安卓项目,(我相信大家都会创建,在这里我就不在说废话了) 在安卓项目中的xml中编写如下代码: < LinearLayout xmlns : android = "http://schemas.android.com/apk/res/android" xmlns : app = "http://schemas.android.com/apk/res-auto" xmlns : tools = "http://schemas.android.com/tools" android : layout_width = "match_parent" android : layout_height = "match_parent" android : orientation = "vertical" tools : context = ".MainActivity" > < LinearLayout android :