android调用第三方地图(URI)

//高德地图
intent = new Intent("android.intent.action.VIEW",
android.net.Uri.parse("androidamap://route?sourceApplication=softname&slat=30.6739968716&slon=103.9602246880&sname=当前位置&dlat=30.6798861599&dlon=103.9739656448&dname=目的地&dev=0&m=0&t=1&showType=1"));
intent.setPackage("com.autonavi.minimap");

//google地图
 intent = new Intent(Intent.ACTION_VIEW,Uri.parse("http://ditu.google.cn/maps?f=d&source=s_d&saddr= 30.6739968716,103.9602246880 &daddr=30.6798861599,103.9739656448&hl=zh")); 
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK & Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS); 
intent.setClassName("com.google.android.apps.maps", "com.google.android.maps.MapsActivity"); 

//百度地图
intent = Intent.getIntent("intent://map/place/search?query=鹏瑞利青羊广场®ion=成都&src=yourCompanyName|yourAppName#Intent;scheme=bdapp;package=com.baidu.BaiduMap;end");

你可能感兴趣的:(Android相关)