Android 点击标记后启动谷歌地图
我有以下代码,我想做的是打开“谷歌地图”应用程序[如何去]到我设置的标记:Android 点击标记后启动谷歌地图,android,google-maps-android-api-2,Android,Google Maps Android Api 2,我有以下代码,我想做的是打开“谷歌地图”应用程序[如何去]到我设置的标记: // S E T M A P P O I N T mLocationClient = new LocationClient(this, this, this); mapFragment = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map)); map =
// S E T M A P P O I N T
mLocationClient = new LocationClient(this, this, this);
mapFragment = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map));
map = mapFragment.getMap();
map.setMapType(GoogleMap.MAP_TYPE_NORMAL);
map.getUiSettings().setZoomControlsEnabled(true);
map.getUiSettings().setCompassEnabled(true);
map.setOnMapClickListener(this);
map.setMyLocationEnabled(true);
map.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(latitude, longitude), ZOOM));
map.clear();
addressText = GetGeolocation.getgeocoder(Date_Accept.this, latitude, longitude);
Marker marker = map.addMarker(new MarkerOptions()
.position(new LatLng(latitude, longitude))
.title(addressText)
.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED)));
marker.showInfoWindow();
我如何打开“谷歌地图”应用程序来获取到达该点的路线?你应该能够使用地图url激发意图,并让android为你处理它
它工作正常,但我还想在单击标记标题时调用new intent。你知道我应该如何实现吗?实现一个