- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical" >
- <TextView
- android:id="@+id/open_Info"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:textSize="16sp" >
- </TextView>
- <View
- android:layout_width="fill_parent"
- android:layout_height="1dip"
- android:background="?android:attr/listDivider" />
- <ListView
- android:id="@+id/listView_openBaiduMap"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content" />
- </LinearLayout>
- package baidumapsdk.demo;
- import java.util.ArrayList;
- import java.util.List;
- import android.app.Activity;
- import android.app.AlertDialog;
- import android.content.DialogInterface;
- import android.content.DialogInterface.OnClickListener;
- import android.graphics.Color;
- import android.os.Bundle;
- import android.view.View;
- import android.view.ViewGroup;
- import android.widget.AdapterView;
- import android.widget.AdapterView.OnItemClickListener;
- import android.widget.BaseAdapter;
- import android.widget.ListView;
- import android.widget.TextView;
- import com.baidu.mapapi.VersionInfo;
- import com.baidu.mapapi.model.LatLng;
- import com.baidu.mapapi.navi.BaiduMapAppNotSupportNaviException;
- import com.baidu.mapapi.navi.BaiduMapNavigation;
- import com.baidu.mapapi.navi.NaviParaOption;
- import com.baidu.mapapi.utils.OpenClientUtil;
- import com.baidu.mapapi.utils.poi.BaiduMapPoiSearch;
- import com.baidu.mapapi.utils.poi.PoiParaOption;
- import com.baidu.mapapi.utils.route.BaiduMapRoutePlan;
- import com.baidu.mapapi.utils.route.RouteParaOption;
- import com.baidu.mapapi.utils.route.RouteParaOption.EBusStrategyType;
- /**
- * 介绍如何调启百度地图实现自身业务功能
- * */
- public class OpenBaiduMap extends Activity {
- // 天安门坐标
- double mLat1 =