我在尝试做类似于美团的调取第三方地图(高德百度)过程中,可以通过

if (JumpMapUtil.isAvilible(mContext, "com.baidu.BaiduMap")) {//传入指定应用包名

intent.setData(Uri.parse("baidumap://map/geocoder?src=openApiDemo&address=" + mServiceAddress));

mContext.startActivity(intent); //启动调用

}

调取百度地图并且进入百度地图首页并把数据带上。在调用高德地图的过程中,按照网上的解法

要不就是调取了一个浏览器打开网页版高德,要不就是

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");

直接进入了选择导航的界面。有什么方法可以进入高德的首页吗?(美团是做到了,可是我不知道怎么做的)

根据高德的文档,你的调用确实是进入 导航 呀;

难道你想要的是这个功能 关键字导航 ?

http://lbs.amap.com/api/amap-…

什么叫进入高德的首页?你可以去看看文档,文档都写得很详细(

http://lbs.amap.com/api/amap-mobile/guide/android/map

),跳转到哪个界面传什么参数都很具体。我猜你是想直接进入高德地图主图界面

Intent intent = new Intent("android.intent.action.VIEW",

android.net.Uri.parse("androidamap://showTraffic?sourceApplication=softname&poiid=BGVIS1&lat=36.2&lon=116.1&level=10&dev=0"));

intent.setPackage(“com.autonavi.minimap”);

startActivity(intent);

950-390_%E7%94%BB%E6%9D%BF-1.jpg

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐