2012-12-20 24 views

回答

1

這就是我正在使用的,它實際上是谷歌導航。

 Intent intent = new Intent(android.content.Intent.ACTION_VIEW, 
Uri.parse("http://maps.google.com/maps?saddr="+latitude_cur+","+longitude_cur+"&daddr="+latitude+","+longitude)); 
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 
intent.addCategory(Intent.CATEGORY_LAUNCHER);  
intent.setClassName("com.google.android.apps.maps", "com.google.android.maps.MapsActivity"); 
startActivity(intent);