📜  打开 google maps 骑行导航 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:23.093000             🧑  作者: Mango

代码示例1
var gmmIntentUri = Uri.parse("google.navigation:q="+destintationLatitude+","+destintationLongitude + "&mode=b");
var mapIntent = Intent(Intent.ACTION_VIEW, gmmIntentUri);
mapIntent.setPackage("com.google.android.apps.maps");
startActivity(mapIntent);