0
A
回答
0
这是一个很好的方式,但更简单的方法做到这一点是如果你不介意打开一个意图是
在浏览器中,它调用谷歌地图或其他导航仪打开URL。
像下面,
Uri uri = Uri
.parse("http://maps.google.com/maps?&saddr=" + mCurrentLatitude+","+mCurrentLongitude+"&daddr="+ mLatitude +"," +mLongitude);
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);
阅读这篇文章http://stackoverflow.com/questions/2023669/j2me-android-blackberry-driving-directions-route-between-two-locations/2023685#2023685 – 2011-05-16 05:06:12