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();
}
转载于:https://www.cnblogs.com/xuanyuer/p/10152339.html