Code example for Marker

Methods: getSnippet

0
	@Override 
	public void onInfoWindowClick(Marker marker) {
		Intent intent = new Intent(this, DetailActivity.class);
		Bundle b = new Bundle();
		//set id for detail 
		b.putString("id", marker.getSnippet()); 
		intent.putExtras(b);
		startActivity(intent);
	} 
 
}