StringBuffer stringBuffer = new StringBuffer("androidauto://navi?sourceApplication=")
.append(getString(R.string.app_name)).append("&lat=").append("36.547901")
.append("&lon=").append("104.258354")
.append("&dev=").append(1)
.append("&style=").append(2);
Intent intent = new Intent(Intent.ACTION_VIEW, android.net.Uri.parse(stringBuffer.toString()));
intent.addCategory(Intent.CATEGORY_DEFAULT);
intent.setPackage("com.autonavi.amapauto");
startActivity(intent);
高德地图车机版导航
最新推荐文章于 2024-04-17 00:31:12 发布