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