在应用中启动外部地图应用并携带参数导航

if(AppUtils.isInstallApp(UtoOrderDetails.this,"com.baidu.BaiduMap")){

   // 驾车导航

 Intent intent=new Intent();

 intent.setAction(Intent.ACTION_VIEW);

 intent.addCategory(Intent.CATEGORY_DEFAULT);

 intent.setData(Uri.parse("baidumap://map/navi?  location="+order.getLatitude()+","+order.getLongtitude()));

startActivity(intent);

}else if(AppUtils.isInstallApp(UtoOrderDetails.this,"com.autonavi.minimap")){

 Intent intent=new Intent();

 intent.setAction(Intent.ACTION_VIEW);

 intent.addCategory(Intent.CATEGORY_DEFAULT);

 Uri uri=Uri.parse("androidamap://navi?  sourceApplication="+AppUtils.getAppName(UtoOrderDetails.this)+"&lat="+order.getLati  tude()+"&lon="+order.getLongtitude()+"&dev=0&style=2");

 intent.setData(uri);

 startActivity(intent);

}else{

 BaiduMapNavigation.openBaiduMapNavi(para,UtoOrderDetails.this);

}

推荐阅读更多精彩内容