android调用高德地图的方法

时间:2024-02-15 16:34:20
Intent intent2 = null;
try {
intent2 = Intent.getIntent("androidamap://route?sourceApplication=softname&sname=我的位置&"+"&dname="+name+"&dev=0&m=0&t=2");
} catch (URISyntaxException e) {
e.printStackTrace();
}
if(isInstallByread("com.autonavi.minimap")){
startActivity(intent2);
//Log.e(TAG, "高德地图客户端已经安装") ;
}else {
Toast.makeText(mContext, "没有安装高德地图客户端", Toast.LENGTH_SHORT).show();
}